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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40]
push 0
push edi
mov esi, ecx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00473590
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x47877f
mov dword [eax], ebx
mov eax, dword [esp + 0x54]
test eax, eax
je 0x47878d
mov edx, dword [esp + 0x10]
mov dword [eax], edx
cmp dword [esi + 0x9c], 0
je 0x47879a
xor ebp, ebp
jmp 0x4787b3
mov ecx, dword [esi + 0x334]
lea eax, [ebx + ebx*8]
mov ebp, dword [ecx + eax*4 + 0x20]
test ebp, ebp
je 0x4787b3
mov edx, dword [esp + 0x10]
lea ebp, [ebp + edx*4]
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
push edi
mov ecx, esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x54], eax
call fcn.00470e50
test eax, eax
je 0x47881d
xor edi, edi
cmp dword [esi + 0x78], edi
je 0x478803
cmp dword [esi + 0x7c], edi
je 0x478803
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, esi
call fcn.00470e50
test eax, eax
je 0x478803
push edi
push edi
push ebx
mov ecx, esi
call fcn.00478330
test eax, eax
jle 0x478801
cmp eax, dword [esi + 0xe0]
jl 0x478801
xor eax, eax
mov edi, eax
mov eax, dword [esp + 0x38]
add dword [eax], edi
add dword [esp + 0x50], edi
test ebp, ebp
je 0x47881d
mov eax, dword [ebp]
cdq
xor eax, edx
sub eax, edx
sub dword [esp + 0x50], eax
cmp dword [esp + 0x4c], 0
je 0x478851
test ebp, ebp
je 0x478849
mov edx, dword [esp + 0x44]
mov eax, dword [ebp + edx*4]
mov ecx, dword [esp + 0x38]
cdq
xor eax, edx
pop edi
sub eax, edx
add eax, dword [esp + 0x4c]
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
add esp, 0x20
ret 0x24
mov edi, dword [0x5e3ebc]
jmp 0x478855
mov edi, dword [esp + 0x34]
mov eax, dword [esi + 0x334]
lea edx, [ebx + ebx*8]
mov ecx, dword [eax + edx*4 + 0x1c]
lea eax, [eax + edx*4]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x54]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x1c], edx
call fcn.00470d60
cmp dword [0x5ba144], 0
mov eax, dword [0x5ba278]
mov dword [esp + 0x18], eax
je 0x478898
mov eax, dword [0x5ba284]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [esi + 0x2b8], 0
je 0x4788d2
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x48]
push ebp
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
jmp 0x478b81
mov ecx, dword [0x5ba554]
test ecx, ecx
jne 0x478b22
cmp dword [esi + 0xb8], ecx
jne 0x478b2b
mov eax, dword [esi + 0xec]
imul eax, eax, 0x190
mov eax, dword [eax + 0x5bd3d8]
test eax, eax
jg 0x47890e
cmp dword [0x5ed838], ecx
je 0x478b22
xor ecx, ecx
test eax, eax
sete cl
xor ebx, ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x478a94
mov eax, dword [esp + 0x14]
add eax, 4
mov edi, edi
mov edx, dword [eax]
cmp edx, dword [esp + 0x10]
jg 0x478940
inc ebx
add eax, 8
cmp ebx, ecx
jl 0x478930
mov dword [esp + 0x34], ebx
test ebx, ebx
jle 0x478977
mov eax, dword [esp + 0x14]
lea ecx, [eax + ebx*8 - 8]
push ecx
call fcn.004871d0
add esp, 4
cmp dword [0x5ba144], 0
mov dword [esp + 0x18], eax
je 0x47896b
mov eax, dword [0x5ba284]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x1c]
cmp ebx, ecx
jge 0x478a94
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
add edx, eax
mov dword [esp + 0x28], edx
lea edx, [ecx + ebx*8 + 4]
mov dword [esp + 0x14], edx
lea esp, [esp]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp eax, dword [esp + 0x28]
jge 0x478a94
cmp dword [esp + 0x4c], 0
jne 0x4789cc
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x48]
cmp edx, dword [ecx + 8]
jg 0x478b01
jmp 0x4789d0
mov ecx, dword [esp + 0x48]
sub eax, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
jle 0x478a52
cmp dword [esp + 0x24], 0
je 0x478a13
mov eax, dword [esp + 0x18]
cmp eax, dword [0x5ba2b0]
jne 0x478a13
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x44]
push ebp
push ebx
push ecx
push edx
push eax
push edi
mov ecx, esi
call fcn.0046f670
jmp 0x478a37
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x44]
push ebp
push ebx
push ecx
push edx
push eax
push edi
mov ecx, esi
call fcn.0046f890
mov ecx, dword [esp + 0x54]
lea edx, [ecx + ebx*2]
mov dword [esp + 0x54], edx
test ebp, ebp
je 0x478a4a
lea ebp, [ebp + ebx*4]
add dword [esp + 0x10], ebx
sub dword [esp + 0x44], ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffffc
push eax
call fcn.004871d0
add esp, 4
cmp dword [0x5ba144], 0
mov dword [esp + 0x18], eax
je 0x478a74
mov eax, dword [0x5ba284]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], 8
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
jl 0x4789a0
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x478b01
cmp dword [esp + 0x24], 0
je 0x478ad9
mov ecx, dword [esp + 0x18]
cmp ecx, dword [0x5ba2b0]
jne 0x478ad9
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push ebp
push eax
mov eax, dword [esp + 0x68]
push eax
push ecx
push edx
push edi
mov ecx, esi
call fcn.0046f670
jmp 0x478b01
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x44]
push ebp
push eax
mov eax, dword [esp + 0x50]
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.0046f890
cmp dword [0x5ba144], 0
mov eax, dword [0x5ba278]
je 0x478b14
mov eax, dword [0x5ba284]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebx, dword [esp + 0x20]
jmp 0x478b89
cmp dword [esi + 0xb8], 0
je 0x478b5d
test ecx, ecx
jne 0x478b5d
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x48]
push ebp
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
push edi
mov ecx, esi
call fcn.004732a0
jmp 0x478b89
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x48]
push ebp
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
push edi
mov ecx, esi
call fcn.0046f890
cmp dword [0x5ed828], 0
je 0x478c96
cmp dword [esp + 0x4c], 0
jne 0x478c96
mov ebp, dword [esp + 0x40]
push ebp
mov ecx, esi
call fcn.00470e50
mov ecx, esi
test eax, eax
je 0x478bbc
push ebp
push ebx
call fcn.00478660
jmp 0x478bc6
push 0
push 0
push ebx
call fcn.00478330
mov ecx, dword [0x5ed760]
mov dword [esp + 0x38], ecx
push ebx
mov ecx, esi
mov ebp, eax
mov dword [0x5ed760], 0
call fcn.004731f0
test eax, eax
je 0x478c15
test ebx, ebx
jle 0x478c15
dec ebx
test ebx, ebx
jle 0x478c02
push ebx
mov ecx, esi
call fcn.004731f0
test eax, eax
je 0x478c02
dec ebx
test ebx, ebx
jg 0x478bf1
push 0
push 0
push ebx
mov ecx, esi
call fcn.00478330
cmp eax, ebp
jl 0x478c15
lea ebp, [eax + 1]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov dword [0x5ed760], edx
mov esi, dword [esi + 0x110]
imul esi, dword [0x5c3218]
lea eax, [ecx + ebp]
lea ebx, [esi + ecx]
cmp ebx, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], esi
jge 0x478c96
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x48]
cmp ebx, dword [ecx]
jl 0x478c90
cmp ebx, dword [ecx + 8]
jge 0x478c90
mov eax, dword [0x5b299c]
push eax
push edi
call ebp
mov ecx, dword [esp + 0x3c]
push 0
push ecx
push ebx
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [0x5c3e74]
mov eax, dword [esp + 0x3c]
add edx, eax
push edx
push ebx
push edi
call dword [sym.imp.GDI32.dll_LineTo]
push esi
push edi
call ebp
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
add ebx, esi
cmp ebx, eax
jl 0x478c48
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x24