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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x5b1074]
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 0x471799
mov eax, 0x80004005
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0050eff9
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.00439d20
mov esi, eax
cmp esi, dword [edi]
je 0x4717d5
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471e76
push eax
push dword [esp + 0x18]
call fcn.00540100
add esp, 8
test eax, eax
jns 0x4717d7
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 0x471812
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 0x471e80
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471828
push dword [esi + 0x14]
call fcn.0051f1a5
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.00439d20
mov esi, eax
cmp esi, dword [edi]
je 0x471864
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471e8b
push eax
push dword [esp + 0x18]
call fcn.00540100
add esp, 8
test eax, eax
jns 0x471866
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 0x4718a1
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 0x471e95
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x4718b3
mov ecx, dword [esp + 0x1c]
push 0
push dword [esi + 0x14]
call fcn.0046e6e0
push str.CutRect
lea ecx, [esp + 0x18]
call fcn.00424e00
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d20
mov esi, eax
cmp esi, dword [edi]
je 0x4718ef
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471ea0
push eax
push dword [esp + 0x18]
call fcn.00540100
add esp, 8
test eax, eax
jns 0x4718f1
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 0x47192c
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 0x471eaa
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x47199a
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.0043bd30
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 0x471979
lea ecx, [esp + 0x20]
call fcn.00442460
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.00439d20
mov esi, eax
cmp esi, dword [edi]
je 0x4719d6
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471eb5
push eax
push dword [esp + 0x18]
call fcn.00540100
add esp, 8
test eax, eax
jns 0x4719d8
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 0x471a13
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 0x471ebf
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471a6e
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.0043bd30
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 0x471a63
mov dword [eax + 0x74], ecx
mov ecx, dword [eax + 0x70]
cmp dword [eax + 0x78], ecx
jge 0x471a6e
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.00439d20
mov esi, eax
cmp esi, dword [edi]
je 0x471aaa
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471eca
push eax
push dword [esp + 0x18]
call fcn.00540100
add esp, 8
test eax, eax
jns 0x471aac
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 0x471ae7
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 0x471ed4
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471b51
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.0043bd30
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 0x471b3d
mov dword [eax + 0x84], ecx
mov ecx, dword [eax + 0x80]
cmp dword [eax + 0x88], ecx
jge 0x471b51
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.00439d20
mov esi, eax
cmp esi, dword [edi]
je 0x471b8d
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471edf
push eax
push dword [esp + 0x18]
call fcn.00540100
add esp, 8
test eax, eax
jns 0x471b8f
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 0x471bca
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 0x471ee9
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471c17
mov eax, dword [esi + 0x14]
mov ecx, 0x58c5e8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x471bfc
test dx, dx
je 0x471bf8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x471bfc
add eax, 4
add ecx, 4
test dx, dx
jne 0x471bd6
xor eax, eax
jmp 0x471c01
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.00439d20
mov esi, eax
cmp esi, dword [edi]
je 0x471c53
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471ef4
push eax
push dword [esp + 0x18]
call fcn.00540100
add esp, 8
test eax, eax
jns 0x471c55
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 0x471c90
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 0x471efe
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471ce4
mov eax, dword [esi + 0x14]
mov ecx, 0x58c5e8
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x471cc6
test dx, dx
je 0x471cc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x471cc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x471ca0
xor eax, eax
jmp 0x471ccb
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.00439d20
mov esi, eax
cmp esi, dword [edi]
je 0x471d20
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471f09
push eax
push dword [esp + 0x18]
call fcn.00540100
add esp, 8
test eax, eax
jns 0x471d22
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 0x471d5d
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 0x471f13
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471da8
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 0x471d8c
mov ecx, dword [edx]
push edx
call dword [ecx + 4]
mov eax, dword [esp + 0x18]
push eax
call fcn.0051f1a5
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ecx + 0xa0], eax
lea ecx, [esp + 0x3c]
call fcn.0043d9c0
push str.Offset
lea ecx, [esp + 0x18]
call fcn.00424e00
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00439d20
mov esi, eax
cmp esi, dword [edi]
je 0x471de4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x471f1e
push eax
push dword [esp + 0x18]
call fcn.00540100
add esp, 8
test eax, eax
jns 0x471de6
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 0x471e21
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 0x471f28
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, dword [edi]
je 0x471e59
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
push eax
push str._d__d
push dword [esi + 0x14]
call fcn.0043bd30
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 0x471e5d
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00442aa0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.0050eff9
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471812
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x4718a1
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x47192c
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471a13
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471ae7
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471bca
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471c90
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471d5d
push 0x80004005
call fcn.0040b4a2
mov ecx, edx
call dword [esp + 0x1c]
jmp 0x471e21