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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xcc
mov edi, dword [esp + 0xe0]
mov dword [esp], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
sub esp, 4
mov dword [esp + 0x68], eax
mov dword [esp], 0x78f078
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [0x458fe0], 0x1e
sub esp, 4
mov dword [esp + 0x6c], eax
mov eax, dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [esp + 0x3c], eax
call eax
sub esp, 8
mov dword [esp + 4], 0x60c0ff
mov dword [esp], edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [0x4504ec]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], edi
call ebp
mov eax, dword [sym.imp.GDI32.dll_SetTextColor]
sub esp, 8
mov dword [esp + 4], 0x804080
mov dword [esp], edi
mov dword [esp + 0x4c], eax
call eax
mov ebx, dword [0x4584e0]
mov ecx, dword [0x42a2e8]
mov esi, dword [0x4584dc]
sub esp, 8
imul eax, ebx, 0x64
mov dword [esp + 0x10], 0x25
mov dword [esp + 8], 0xffffffff
mov dword [esp], edi
cdq
idiv ecx
add eax, esi
mov dword [esp + 0x70], eax
imul eax, ebx, 0x4ec
cdq
idiv ecx
add eax, esi
mov esi, dword [0x4584d8]
mov dword [esp + 0x78], eax
imul eax, ebx, 0x1e
cdq
idiv ecx
add eax, esi
mov dword [esp + 0x74], eax
lea eax, [ebx + ebx*4]
shl eax, 4
cdq
idiv ecx
add eax, esi
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [0x450484]
add eax, 0x95a
mov dword [esp + 4], eax
mov eax, dword [sym.imp.USER32.dll_DrawTextW]
mov dword [esp + 0x38], eax
call eax
mov eax, dword [0x4504f4]
sub esp, 0x14
mov dword [esp + 4], eax
mov dword [esp], edi
call ebp
sub esp, 8
mov dword [esp + 4], 0x404080
mov dword [esp], edi
call dword [sym.imp.GDI32.dll_SetDCPenColor]
sub esp, 8
mov dword [esp], 0x13
call dword [sym.imp.GDI32.dll_GetStockObject]
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], edi
call ebp
sub esp, 8
cmp dword [0x45900c], 1
jg 0x418a50
mov esi, dword [0x4584a0]
test esi, esi
jne 0x418c39
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
sub esp, 4
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DeleteDC]
sub esp, 4
call dword [sym.imp.GDI32.dll_GdiFlush]
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4504f0]
mov dword [esp], edi
mov dword [esp + 4], eax
call ebp
sub esp, 8
mov dword [esp + 4], 0x606060
mov eax, dword [esp + 0x4c]
mov dword [esp], edi
call eax
mov ecx, dword [0x4584e0]
mov esi, dword [0x42a2e8]
mov ebx, dword [0x4584dc]
sub esp, 8
imul eax, ecx, 0x6e
mov dword [esp + 4], 0x40
cdq
idiv esi
add eax, ebx
mov dword [esp + 0x70], eax
lea eax, [ecx + ecx*4]
shl eax, 6
cdq
idiv esi
add eax, ebx
mov ebx, dword [0x4584d8]
mov dword [esp + 0x78], eax
imul eax, ecx, 0x8c
cdq
idiv esi
add eax, ebx
mov dword [esp + 0x74], eax
imul eax, ecx, 0xb4
cdq
idiv esi
lea esi, [esp + 0x80]
mov dword [esp], esi
mov dword [esp + 0x50], esi
add eax, ebx
lea ebx, [esp + 0x70]
mov dword [esp + 0x7c], eax
mov eax, dword [0x450484]
lea edx, [eax + 0x96e]
add eax, 0x143e
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
call fcn.00412cd0
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x10], 0x25
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
mov dword [esp], edi
call ebx
mov eax, dword [0x4504f4]
sub esp, 0x14
mov dword [esp + 4], eax
mov dword [esp], edi
call ebp
sub esp, 8
mov dword [esp + 4], 0x703030
mov eax, dword [esp + 0x4c]
mov dword [esp], edi
call eax
mov ebx, dword [0x45900c]
mov ecx, 0x20
sub esp, 8
mov word [esp + 0x80], cx
mov dword [esp + 0x84], 0x20
test ebx, ebx
jle 0x418a0b
mov dword [esp + 0x30], ebp
mov esi, 0x145
xor ebx, ebx
lea esi, [esi]
nop
mov edx, dword [0x4584a0]
mov eax, 1
test edx, edx
jle 0x418b9d
xor eax, eax
cmp dword [0x4584a8], ebx
sete al
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
add ebx, 1
mov dword [esp], edi
call eax
mov ebp, dword [0x4584e0]
mov eax, esi
mov ecx, dword [0x4584dc]
sub esp, 8
imul eax, ebp
mov dword [esp + 0x10], 0x25
mov dword [esp + 8], 0xffffffff
mov dword [esp], edi
cdq
idiv dword [0x42a2e8]
add eax, ecx
mov dword [esp + 0x70], eax
lea eax, [esi + 0x32]
add esi, 0x3c
imul eax, ebp
cdq
idiv dword [0x42a2e8]
add eax, ecx
mov dword [esp + 0x78], eax
lea eax, [ebx + 0x30]
mov word [esp + 0x82], ax
lea eax, [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
call eax
sub esp, 0x14
cmp ebx, dword [0x45900c]
jl 0x418b80
mov esi, dword [0x4584a0]
mov ebp, dword [esp + 0x30]
test esi, esi
je 0x418a19
mov eax, dword [0x4584d0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call ebp
sub esp, 8
mov eax, dword [esp + 0x6c]
mov dword [esp], edi
mov dword [esp + 4], eax
call ebp
mov ebp, edi
sub esp, 8
lea eax, [esp + 0x80]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x50], eax
lea esi, [esi]
nop
mov ebx, dword [esp + 0x44]
mov eax, 0xcccccccd
mul ebx
mov eax, edx
and edx, 0xfffffffc
shr eax, 2
add edx, eax
mov eax, ebx
sub eax, edx
mov edx, 0x1ac
imul esi, eax, 0xd2
cmp ebx, 4
mov ebx, 0x1cb
lea eax, [esi + 0xa0]
mov dword [esp + 0x54], esi
mov dword [esp + 0x30], eax
mov eax, 0xa4
cmovg eax, ebx
mov dword [esp + 0x60], eax
mov eax, 0x85
cmovg eax, edx
mov edx, 0x1cd
mov dword [esp + 0x5c], eax
mov eax, 0xa6
cmovg eax, edx
mov edx, 0x2c9
mov dword [esp + 0x58], eax
mov eax, 0x1a2
cmovg eax, edx
mov edx, 0x1a9
mov edi, eax
mov eax, 0x82
cmovg eax, edx
mov dword [esp + 0x64], edi
add esi, 0x15e
mov dword [esp + 0x34], esi
mov dword [esp + 0x48], eax
mov esi, eax
lea ebx, [eax + 0x144]
lea esi, [esi]
mov ecx, dword [0x4584e0]
mov eax, esi
mov dword [esp], ebp
mov edi, dword [0x42a2e8]
mov dword [esp + 0xc], 0
imul eax, ecx
cdq
idiv edi
add eax, dword [0x4584d8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
imul eax, ecx
cdq
idiv edi
add eax, dword [0x4584dc]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [0x4584e0]
mov eax, esi
mov edi, dword [0x42a2e8]
sub esp, 0x10
add esi, 0x24
imul eax, ecx
mov dword [esp], ebp
cdq
idiv edi
add eax, dword [0x4584d8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
imul eax, ecx
cdq
idiv edi
add eax, dword [0x4584dc]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_LineTo]
sub esp, 0xc
cmp ebx, esi
jne 0x418d20
mov esi, dword [esp + 0x48]
mov ecx, dword [0x4584e0]
mov dword [esp], ebp
mov ebx, dword [0x42a2e8]
mov edi, dword [esp + 0x64]
mov dword [esp + 0xc], 0
mov eax, esi
imul eax, ecx
cdq
idiv ebx
add eax, dword [0x4584d8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
imul eax, ecx
cdq
idiv ebx
add eax, dword [0x4584dc]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [0x4584e0]
mov ebx, dword [0x42a2e8]
sub esp, 0x10
mov edx, ecx
mov dword [esp], ebp
imul edx, edi
mov eax, edx
cdq
idiv ebx
add eax, dword [0x4584d8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
imul eax, ecx
cdq
idiv ebx
add eax, dword [0x4584dc]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [0x4584e0]
mov eax, esi
mov ebx, dword [0x42a2e8]
sub esp, 0xc
imul eax, ecx
mov dword [esp + 0xc], 0
mov dword [esp], ebp
cdq
idiv ebx
mov edx, dword [esp + 0x34]
imul edx, ecx
add eax, dword [0x4584d8]
mov dword [esp + 8], eax
mov eax, edx
cdq
idiv ebx
add eax, dword [0x4584dc]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [0x4584e0]
mov ebx, dword [0x42a2e8]
sub esp, 0x10
imul edi, ecx
mov dword [esp], ebp
mov eax, edi
cdq
idiv ebx
mov edx, dword [esp + 0x34]
imul edx, ecx
add eax, dword [0x4584d8]
add eax, 1
mov dword [esp + 8], eax
mov eax, edx
cdq
idiv ebx
add eax, dword [0x4584dc]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ebx, dword [0x4584e0]
mov eax, esi
mov ecx, dword [0x4584d8]
sub esp, 0xc
imul eax, ebx
mov edi, dword [esp + 0x30]
mov dword [esp + 0x48], esi
mov dword [esp + 0x20], 0xc000ca
imul edi, ebx
mov dword [esp], ebp
cdq
idiv dword [0x42a2e8]
add ecx, eax
mov dword [esp + 0x64], eax
mov eax, edi
cdq
lea esi, [ecx + 1]
mov ecx, dword [0x4584dc]
idiv dword [0x42a2e8]
mov dword [esp + 0x1c], esi
mov dword [esp + 8], esi
mov edi, eax
add ecx, eax
mov eax, dword [esp + 0x68]
lea ecx, [ecx + 1]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], ecx
imul eax, ebx
mov dword [esp + 4], ecx
cdq
idiv dword [0x42a2e8]
mov edx, dword [esp + 0x64]
sub eax, edx
mov edx, dword [esp + 0x34]
sub eax, 1
imul edx, ebx
mov dword [esp + 0x10], eax
mov eax, edx
cdq
idiv dword [0x42a2e8]
sub eax, edi
sub eax, 1
mov dword [esp + 0xc], eax
call dword [sym.imp.GDI32.dll_BitBlt]
sub esp, 0x24
mov ebx, dword [esp + 0x3c]
mov dword [esp + 4], 1
mov dword [esp], ebp
call ebx
sub esp, 8
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], 0x606060
mov dword [esp], ebp
call ebx
mov ecx, dword [0x4584e0]
mov esi, dword [0x42a2e8]
sub esp, 8
mov edi, dword [esp + 0x54]
add dword [esp + 0x44], 1
mov dword [esp + 4], 0x40
add edi, 0xa5
mov ebx, edi
mov edi, dword [0x4584dc]
imul ebx, ecx
mov eax, ebx
cdq
idiv esi
add eax, edi
mov dword [esp + 0x70], eax
imul eax, ecx, 0xb5
add eax, ebx
mov ebx, dword [0x4584d8]
cdq
idiv esi
add eax, edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], edi
imul eax, ecx
cdq
idiv esi
add eax, ebx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x60]
imul eax, ecx
cdq
idiv esi
add eax, ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x7c], eax
mov eax, dword [0x450484]
mov dword [esp + 0x10], ebx
lea edx, [eax + 0x98e]
add eax, 0x12ba
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
call fcn.00412cd0
lea edx, [esp + 0x70]
mov dword [esp + 4], edi
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x10], 0x25
mov dword [esp + 8], 0xffffffff
mov dword [esp], ebp
call edx
sub esp, 0x14
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], 0x703030
mov dword [esp], ebp
call ebx
xor ebx, ebx
sub esp, 8
mov esi, dword [esp + 0x48]
add esi, 0x27
lea esi, [esi]
nop
mov eax, dword [esp + 0x40]
mov dword [esp], ebp
add eax, ebx
cmp dword [0x458fc4], eax
sete al
add ebx, 1
movzx eax, al
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
call eax
mov ecx, dword [0x4584e0]
mov eax, esi
sub esp, 8
imul eax, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x40
mov dword [esp], edi
cdq
idiv dword [0x42a2e8]
add eax, dword [0x4584d8]
mov dword [esp + 0x74], eax
lea eax, [esi + 0x1f]
add esi, 0x24
imul eax, ecx
cdq
idiv dword [0x42a2e8]
add eax, dword [0x4584d8]
mov dword [esp + 0x7c], eax
mov eax, dword [0x450484]
add eax, 0x1410
mov dword [esp + 8], eax
call fcn.00412cd0
lea eax, [esp + 0x70]
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0x25
mov dword [esp + 8], 0xffffffff
mov dword [esp], ebp
call eax
sub esp, 0x14
cmp ebx, 7
jne 0x419078
add dword [esp + 0x40], 7
cmp dword [esp + 0x44], 8
jne 0x418c80
mov edi, ebp
mov ebx, 0x1a9
mov ecx, dword [0x4584e0]
mov eax, ebx
mov dword [esp], edi
mov esi, dword [0x42a2e8]
mov dword [esp + 0xc], 0
imul eax, ecx
cdq
idiv esi
add eax, dword [0x4584d8]
mov dword [esp + 8], eax
imul eax, ecx, 0x316
cdq
idiv esi
add eax, dword [0x4584dc]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [0x4584e0]
mov eax, ebx
mov esi, dword [0x42a2e8]
sub esp, 0x10
add ebx, 0x24
imul eax, ecx
mov dword [esp], edi
cdq
idiv esi
add eax, dword [0x4584d8]
mov dword [esp + 8], eax
imul eax, ecx, 0x3d4
cdq
idiv esi
add eax, dword [0x4584dc]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_LineTo]
sub esp, 0xc
cmp ebx, 0x2ed
jne 0x419140
mov ecx, dword [0x4584e0]
mov ebx, dword [0x42a2e8]
mov dword [esp + 0xc], 0
mov dword [esp], edi
imul eax, ecx, 0x1a9
cdq
idiv ebx
add eax, dword [0x4584d8]
mov dword [esp + 8], eax
imul eax, ecx, 0x316
cdq
idiv ebx
add eax, dword [0x4584dc]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [0x4584e0]
mov ebx, dword [0x42a2e8]
sub esp, 0x10
imul eax, ecx, 0x2c9
mov dword [esp], edi
cdq
idiv ebx
add eax, dword [0x4584d8]
mov dword [esp + 8], eax
imul eax, ecx, 0x316
cdq
idiv ebx
add eax, dword [0x4584dc]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [0x4584e0]
mov ebx, dword [0x42a2e8]
sub esp, 0xc
imul eax, ecx, 0x1a9
mov dword [esp + 0xc], 0
mov dword [esp], edi
cdq
idiv ebx
add eax, dword [0x4584d8]
mov dword [esp + 8], eax
imul eax, ecx, 0x3d4
cdq
idiv ebx
add eax, dword [0x4584dc]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [0x4584e0]
mov ebx, dword [0x42a2e8]
sub esp, 0x10
imul eax, ecx, 0x2c9
mov dword [esp], edi
cdq
idiv ebx
add eax, dword [0x4584d8]
add eax, 1
mov dword [esp + 8], eax
imul eax, ecx, 0x3d4
cdq
idiv ebx
add eax, dword [0x4584dc]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_LineTo]
imul eax, dword [0x4584e0], 0x1a9
sub esp, 0xc
mov dword [esp + 0x20], 0xc000ca
cdq
mov dword [esp], edi
idiv dword [0x42a2e8]
mov ebx, eax
add eax, dword [0x4584d8]
lea ebp, [eax + 1]
imul eax, dword [0x4584e0], 0x316
mov dword [esp + 0x1c], ebp
mov dword [esp + 8], ebp
cdq
idiv dword [0x42a2e8]
mov ecx, eax
add eax, dword [0x4584dc]
lea esi, [eax + 1]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
imul eax, dword [0x4584e0], 0x1cd
mov dword [esp + 4], esi
cdq
idiv dword [0x42a2e8]
sub eax, ebx
sub eax, 1
mov dword [esp + 0x10], eax
imul eax, dword [0x4584e0], 0x3d4
cdq
idiv dword [0x42a2e8]
sub eax, ecx
sub eax, 1
mov dword [esp + 0xc], eax
call dword [sym.imp.GDI32.dll_BitBlt]
sub esp, 0x24
mov dword [esp + 4], 1
mov eax, dword [esp + 0x3c]
mov dword [esp], edi
call eax
sub esp, 8
mov ebp, dword [esp + 0x4c]
mov dword [esp + 4], 0x606060
mov dword [esp], edi
call ebp
mov ecx, dword [0x4584e0]
mov esi, dword [0x42a2e8]
sub esp, 8
mov ebx, dword [0x4584dc]
imul eax, ecx, 0x31b
mov dword [esp + 0x10], 0x25
mov dword [esp + 8], 0xffffffff
mov dword [esp], edi
cdq
idiv esi
add eax, ebx
mov dword [esp + 0x70], eax
imul eax, ecx, 0x3d0
cdq
idiv esi
add eax, ebx
mov ebx, dword [0x4584d8]
mov dword [esp + 0x78], eax
imul eax, ecx, 0x1ac
cdq
idiv esi
add eax, ebx
mov dword [esp + 0x74], eax
imul eax, ecx, 0x1cb
cdq
idiv esi
add eax, ebx
mov ebx, 0x1d0
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [0x450484]
add eax, 0x3ac
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
call eax
sub esp, 0x14
mov dword [esp + 4], 0x703030
mov dword [esp], edi
call ebp
xor ebp, ebp
sub esp, 8
mov esi, dword [esp + 0x50]
lea esi, [esi]
lea eax, [ebp + 0x38]
cmp dword [0x458fc4], eax
mov dword [esp], edi
sete al
add ebp, 1
movzx eax, al
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
call eax
mov ecx, dword [0x4584e0]
mov eax, ebx
sub esp, 8
imul eax, ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 0x40
mov dword [esp], esi
cdq
idiv dword [0x42a2e8]
add eax, dword [0x4584d8]
mov dword [esp + 0x74], eax
lea eax, [ebx + 0x1f]
add ebx, 0x24
imul eax, ecx
cdq
idiv dword [0x42a2e8]
add eax, dword [0x4584d8]
mov dword [esp + 0x7c], eax
mov eax, dword [0x450484]
add eax, 0x1410
mov dword [esp + 8], eax
call fcn.00412cd0
lea eax, [esp + 0x70]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0x25
mov dword [esp + 8], 0xffffffff
mov dword [esp], edi
call eax
sub esp, 0x14
cmp ebp, 7
jne 0x419440
jmp 0x418a19