Function at 0x471710
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 0x471749
mov eax, 0x80004005
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0050f7b9
mov esp, ebp
pop ebp
ret 4
push str.DrawType
lea ecx, [esp + 0x18]
call fcn.00424e20
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d80
mov esi, eax
cmp esi, dword [edi]
je 0x471785
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471e26
push eax
push dword [esp + 0x18]
call fcn.005408c0
add esp, 8
test eax, eax
jns 0x471787
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 0x4717c2
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 0x471e30
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x4717d8
push dword [esi + 0x14]
call fcn.0051f965
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ecx + 0x58], eax
push str.File
lea ecx, [esp + 0x18]
call fcn.00424e20
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d80
mov esi, eax
cmp esi, dword [edi]
je 0x471814
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471e3b
push eax
push dword [esp + 0x18]
call fcn.005408c0
add esp, 8
test eax, eax
jns 0x471816
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 0x471851
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 0x471e45
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471863
mov ecx, dword [esp + 0x1c]
push 0
push dword [esi + 0x14]
call fcn.0046e690
push str.CutRect
lea ecx, [esp + 0x18]
call fcn.00424e20
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d80
mov esi, eax
cmp esi, dword [edi]
je 0x47189f
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471e50
push eax
push dword [esp + 0x18]
call fcn.005408c0
add esp, 8
test eax, eax
jns 0x4718a1
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 0x4718dc
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 0x471e5a
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x47194a
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.0043bd60
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 0x471929
lea ecx, [esp + 0x20]
call fcn.004424c0
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.00424e20
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d80
mov esi, eax
cmp esi, dword [edi]
je 0x471986
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471e65
push eax
push dword [esp + 0x18]
call fcn.005408c0
add esp, 8
test eax, eax
jns 0x471988
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 0x4719c3
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 0x471e6f
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471a1e
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.0043bd60
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 0x471a13
mov dword [eax + 0x74], ecx
mov ecx, dword [eax + 0x70]
cmp dword [eax + 0x78], ecx
jge 0x471a1e
mov dword [eax + 0x78], ecx
push str.TileRect2
lea ecx, [esp + 0x18]
call fcn.00424e20
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d80
mov esi, eax
cmp esi, dword [edi]
je 0x471a5a
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471e7a
push eax
push dword [esp + 0x18]
call fcn.005408c0
add esp, 8
test eax, eax
jns 0x471a5c
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 0x471a97
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 0x471e84
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471b01
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.0043bd60
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 0x471aed
mov dword [eax + 0x84], ecx
mov ecx, dword [eax + 0x80]
cmp dword [eax + 0x88], ecx
jge 0x471b01
mov dword [eax + 0x88], ecx
push str.Scale
lea ecx, [esp + 0x18]
call fcn.00424e20
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d80
mov esi, eax
cmp esi, dword [edi]
je 0x471b3d
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471e8f
push eax
push dword [esp + 0x18]
call fcn.005408c0
add esp, 8
test eax, eax
jns 0x471b3f
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 0x471b7a
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 0x471e99
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471bc7
mov eax, dword [esi + 0x14]
mov ecx, 0x58d608
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x471bac
test dx, dx
je 0x471ba8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x471bac
add eax, 4
add ecx, 4
test dx, dx
jne 0x471b86
xor eax, eax
jmp 0x471bb1
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.00424e20
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d80
mov esi, eax
cmp esi, dword [edi]
je 0x471c03
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471ea4
push eax
push dword [esp + 0x18]
call fcn.005408c0
add esp, 8
test eax, eax
jns 0x471c05
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 0x471c40
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 0x471eae
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471c94
mov eax, dword [esi + 0x14]
mov ecx, 0x58d608
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x471c76
test dx, dx
je 0x471c72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x471c76
add eax, 4
add ecx, 4
test dx, dx
jne 0x471c50
xor eax, eax
jmp 0x471c7b
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.00424e20
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d80
mov esi, eax
cmp esi, dword [edi]
je 0x471cd0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471eb9
push eax
push dword [esp + 0x18]
call fcn.005408c0
add esp, 8
test eax, eax
jns 0x471cd2
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 0x471d0d
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 0x471ec3
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471d58
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 0x471d3c
mov ecx, dword [edx]
push edx
call dword [ecx + 4]
mov eax, dword [esp + 0x18]
push eax
call fcn.0051f965
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ecx + 0xa0], eax
lea ecx, [esp + 0x3c]
call fcn.0043da20
push str.Offset
lea ecx, [esp + 0x18]
call fcn.00424e20
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d80
mov esi, eax
cmp esi, dword [edi]
je 0x471d94
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471ece
push eax
push dword [esp + 0x18]
call fcn.005408c0
add esp, 8
test eax, eax
jns 0x471d96
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 0x471dd1
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 0x471ed8
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471e09
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
push eax
push str._d__d
push dword [esi + 0x14]
call fcn.0043bd60
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 0x471e0d
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00442b00
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.0050f7b9
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x4717c2
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471851
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x4718dc
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x4719c3
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471a97
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471b7a
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471c40
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471d0d
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471dd1