Function at 0x4718c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x5b3074]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
test edi, edi
jne 0x4718f9
mov eax, 0x80004005
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00510209
mov esp, ebp
pop ebp
ret 4
push str.DrawType
lea ecx, [esp + 0x18]
call fcn.00424e00
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d60
mov esi, eax
cmp esi, dword [edi]
je 0x471935
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471fd6
push eax
push dword [esp + 0x18]
call fcn.00541310
add esp, 8
test eax, eax
jns 0x471937
mov esi, dword [edi]
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x471972
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x471fe0
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471988
push dword [esi + 0x14]
call fcn.005203b5
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ecx + 0x58], eax
push str.File
lea ecx, [esp + 0x18]
call fcn.00424e00
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d60
mov esi, eax
cmp esi, dword [edi]
je 0x4719c4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471feb
push eax
push dword [esp + 0x18]
call fcn.00541310
add esp, 8
test eax, eax
jns 0x4719c6
mov esi, dword [edi]
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x471a01
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x471ff5
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471a13
mov ecx, dword [esp + 0x1c]
push 0
push dword [esi + 0x14]
call fcn.0046e840
push str.CutRect
lea ecx, [esp + 0x18]
call fcn.00424e00
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d60
mov esi, eax
cmp esi, dword [edi]
je 0x471a4f
mov eax, dword [esi + 0x10]
test eax, eax
je 0x472000
push eax
push dword [esp + 0x18]
call fcn.00541310
add esp, 8
test eax, eax
jns 0x471a51
mov esi, dword [edi]
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x471a8c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x47200a
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471afa
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
push str._d__d__d__d
push dword [esi + 0x14]
call fcn.0043bd40
add esp, 0x18
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov esi, dword [esp + 0x1c]
mov edx, dword [esi + 0x54]
cmp edx, 0x64
jle 0x471ad9
lea ecx, [esp + 0x20]
call fcn.004424a0
movups xmm0, xmmword [esp + 0x20]
movups xmmword [esi + 0x5c], xmm0
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x68]
sub ecx, dword [esi + 0x5c]
sub eax, dword [esi + 0x60]
mov dword [esi + 0x98], ecx
mov dword [esi + 0x9c], eax
push str.TileRect
lea ecx, [esp + 0x18]
call fcn.00424e00
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d60
mov esi, eax
cmp esi, dword [edi]
je 0x471b36
mov eax, dword [esi + 0x10]
test eax, eax
je 0x472015
push eax
push dword [esp + 0x18]
call fcn.00541310
add esp, 8
test eax, eax
jns 0x471b38
mov esi, dword [edi]
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x471b73
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x47201f
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471bce
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
push str._d__d__d__d
push dword [esi + 0x14]
call fcn.0043bd40
add esp, 0x18
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x1c]
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax + 0x6c], xmm0
mov ecx, dword [eax + 0x6c]
cmp dword [eax + 0x74], ecx
jge 0x471bc3
mov dword [eax + 0x74], ecx
mov ecx, dword [eax + 0x70]
cmp dword [eax + 0x78], ecx
jge 0x471bce
mov dword [eax + 0x78], ecx
push str.TileRect2
lea ecx, [esp + 0x18]
call fcn.00424e00
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d60
mov esi, eax
cmp esi, dword [edi]
je 0x471c0a
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47202a
push eax
push dword [esp + 0x18]
call fcn.00541310
add esp, 8
test eax, eax
jns 0x471c0c
mov esi, dword [edi]
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x471c47
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x472034
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471cb1
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
push str._d__d__d__d
push dword [esi + 0x14]
call fcn.0043bd40
add esp, 0x18
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x1c]
movups xmm0, xmmword [esp + 0x20]
movups xmmword [eax + 0x7c], xmm0
mov ecx, dword [eax + 0x7c]
cmp dword [eax + 0x84], ecx
jge 0x471c9d
mov dword [eax + 0x84], ecx
mov ecx, dword [eax + 0x80]
cmp dword [eax + 0x88], ecx
jge 0x471cb1
mov dword [eax + 0x88], ecx
push str.Scale
lea ecx, [esp + 0x18]
call fcn.00424e00
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d60
mov esi, eax
cmp esi, dword [edi]
je 0x471ced
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47203f
push eax
push dword [esp + 0x18]
call fcn.00541310
add esp, 8
test eax, eax
jns 0x471cef
mov esi, dword [edi]
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x471d2a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x472049
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471d77
mov eax, dword [esi + 0x14]
mov ecx, 0x58d5e8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x471d5c
test dx, dx
je 0x471d58
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x471d5c
add eax, 4
add ecx, 4
test dx, dx
jne 0x471d36
xor eax, eax
jmp 0x471d61
sbb eax, eax
or eax, 1
test eax, eax
mov ecx, 0
mov eax, 1
cmove ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x50], ecx
push str.TransparentDirect
lea ecx, [esp + 0x18]
call fcn.00424e00
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d60
mov esi, eax
cmp esi, dword [edi]
je 0x471db3
mov eax, dword [esi + 0x10]
test eax, eax
je 0x472054
push eax
push dword [esp + 0x18]
call fcn.00541310
add esp, 8
test eax, eax
jns 0x471db5
mov esi, dword [edi]
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x471df0
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x47205e
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471e44
mov eax, dword [esi + 0x14]
mov ecx, 0x58d5e8
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x471e26
test dx, dx
je 0x471e22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x471e26
add eax, 4
add ecx, 4
test dx, dx
jne 0x471e00
xor eax, eax
jmp 0x471e2b
sbb eax, eax
or eax, 1
test eax, eax
mov ecx, 0
mov eax, 1
cmove ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x8c], ecx
push str.ImageType
lea ecx, [esp + 0x18]
call fcn.00424e00
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d60
mov esi, eax
cmp esi, dword [edi]
je 0x471e80
mov eax, dword [esi + 0x10]
test eax, eax
je 0x472069
push eax
push dword [esp + 0x18]
call fcn.00541310
add esp, 8
test eax, eax
jns 0x471e82
mov esi, dword [edi]
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x471ebd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x472073
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471f08
mov ecx, dword [esi + 0x14]
sub ecx, 0x10
call fcn.00408e8d
mov edx, dword [esi + 0x18]
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
test edx, edx
je 0x471eec
mov ecx, dword [edx]
push edx
call dword [ecx + 4]
mov eax, dword [esp + 0x18]
push eax
call fcn.005203b5
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ecx + 0xa0], eax
lea ecx, [esp + 0x3c]
call fcn.0043da00
push str.Offset
lea ecx, [esp + 0x18]
call fcn.00424e00
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d60
mov esi, eax
cmp esi, dword [edi]
je 0x471f44
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47207e
push eax
push dword [esp + 0x18]
call fcn.00541310
add esp, 8
test eax, eax
jns 0x471f46
mov esi, dword [edi]
mov ecx, dword [esp + 0x14]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x471f81
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x472088
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471fb9
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
push eax
push str._d__d
push dword [esi + 0x14]
call fcn.0043bd40
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0xa8], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 0xac], eax
jmp 0x471fbd
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00442ae0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.00510209
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471972
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471a01
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471a8c
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471b73
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471c47
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471d2a
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471df0
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471ebd
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471f81