Function at 0x4791c0
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.004745a0
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x4791ef
mov dword [eax], ebx
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4791fd
mov edx, dword [esp + 0x10]
mov dword [eax], edx
cmp dword [esi + 0x9c], 0
je 0x47920a
xor ebp, ebp
jmp 0x479223
mov ecx, dword [esi + 0x31c]
lea eax, [ebx + ebx*8]
mov ebp, dword [ecx + eax*4 + 0x20]
test ebp, ebp
je 0x479223
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.00471ec0
test eax, eax
je 0x47928d
xor edi, edi
cmp dword [esi + 0x78], edi
je 0x479273
cmp dword [esi + 0x7c], edi
je 0x479273
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, esi
call fcn.00471ec0
test eax, eax
je 0x479273
push edi
push edi
push ebx
mov ecx, esi
call fcn.00478da0
test eax, eax
jle 0x479271
cmp eax, dword [esi + 0xe0]
jl 0x479271
xor eax, eax
mov edi, eax
mov eax, dword [esp + 0x38]
add dword [eax], edi
add dword [esp + 0x50], edi
test ebp, ebp
je 0x47928d
mov eax, dword [ebp]
cdq
xor eax, edx
sub eax, edx
sub dword [esp + 0x50], eax
cmp dword [esp + 0x4c], 0
je 0x4792c1
test ebp, ebp
je 0x4792b9
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 [0x5e3e3c]
jmp 0x4792c5
mov edi, dword [esp + 0x34]
mov eax, dword [esi + 0x31c]
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.00471dd0
cmp dword [0x5ba084], 0
mov eax, dword [0x5ba1a8]
mov dword [esp + 0x18], eax
je 0x479308
mov eax, dword [0x5ba1b4]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [esi + 0x2a0], 0
je 0x479342
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 0x4795f1
mov ecx, dword [0x5ba48c]
test ecx, ecx
jne 0x479592
cmp dword [esi + 0xb8], ecx
jne 0x47959b
mov eax, dword [esi + 0xec]
imul eax, eax, 0x190
mov eax, dword [eax + 0x5bd350]
test eax, eax
jg 0x47937e
cmp dword [0x5ed7c8], ecx
je 0x479592
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 0x479504
mov eax, dword [esp + 0x14]
add eax, 4
mov edi, edi
mov edx, dword [eax]
cmp edx, dword [esp + 0x10]
jg 0x4793b0
inc ebx
add eax, 8
cmp ebx, ecx
jl 0x4793a0
mov dword [esp + 0x34], ebx
test ebx, ebx
jle 0x4793e7
mov eax, dword [esp + 0x14]
lea ecx, [eax + ebx*8 - 8]
push ecx
call fcn.00486c20
add esp, 4
cmp dword [0x5ba084], 0
mov dword [esp + 0x18], eax
je 0x4793db
mov eax, dword [0x5ba1b4]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [esp + 0x1c]
cmp ebx, ecx
jge 0x479504
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 0x479504
cmp dword [esp + 0x4c], 0
jne 0x47943c
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x48]
cmp edx, dword [ecx + 8]
jg 0x479571
jmp 0x479440
mov ecx, dword [esp + 0x48]
sub eax, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
jle 0x4794c2
cmp dword [esp + 0x24], 0
je 0x479483
mov eax, dword [esp + 0x18]
cmp eax, dword [0x5ba1e0]
jne 0x479483
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.00470bd0
jmp 0x4794a7
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.00470df0
mov ecx, dword [esp + 0x54]
lea edx, [ecx + ebx*2]
mov dword [esp + 0x54], edx
test ebp, ebp
je 0x4794ba
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.00486c20
add esp, 4
cmp dword [0x5ba084], 0
mov dword [esp + 0x18], eax
je 0x4794e4
mov eax, dword [0x5ba1b4]
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 0x479410
mov eax, dword [esp + 0x44]
test eax, eax
jle 0x479571
cmp dword [esp + 0x24], 0
je 0x479549
mov ecx, dword [esp + 0x18]
cmp ecx, dword [0x5ba1e0]
jne 0x479549
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.00470bd0
jmp 0x479571
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.00470df0
cmp dword [0x5ba084], 0
mov eax, dword [0x5ba1a8]
je 0x479584
mov eax, dword [0x5ba1b4]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebx, dword [esp + 0x20]
jmp 0x4795f9
cmp dword [esi + 0xb8], 0
je 0x4795cd
test ecx, ecx
jne 0x4795cd
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.004742b0
jmp 0x4795f9
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.00470df0
cmp dword [0x5ed7b8], 0
je 0x479706
cmp dword [esp + 0x4c], 0
jne 0x479706
mov ebp, dword [esp + 0x40]
push ebp
mov ecx, esi
call fcn.00471ec0
mov ecx, esi
test eax, eax
je 0x47962c
push ebp
push ebx
call fcn.004790d0
jmp 0x479636
push 0
push 0
push ebx
call fcn.00478da0
mov ecx, dword [0x5ed6f0]
mov dword [esp + 0x38], ecx
push ebx
mov ecx, esi
mov ebp, eax
mov dword [0x5ed6f0], 0
call fcn.00474200
test eax, eax
je 0x479685
test ebx, ebx
jle 0x479685
dec ebx
test ebx, ebx
jle 0x479672
push ebx
mov ecx, esi
call fcn.00474200
test eax, eax
je 0x479672
dec ebx
test ebx, ebx
jg 0x479661
push 0
push 0
push ebx
mov ecx, esi
call fcn.00478da0
cmp eax, ebp
jl 0x479685
lea ebp, [eax + 1]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov dword [0x5ed6f0], edx
mov esi, dword [esi + 0x110]
imul esi, dword [0x5c3198]
lea eax, [ecx + ebp]
lea ebx, [esi + ecx]
cmp ebx, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], esi
jge 0x479706
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x48]
cmp ebx, dword [ecx]
jl 0x479700
cmp ebx, dword [ecx + 8]
jge 0x479700
mov eax, dword [0x5b2994]
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 [0x5c3df4]
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 0x4796b8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x24