Function at 0x418850
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 + 0x60], eax
mov dword [esp], 0xf0f078
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [0x45ae20], 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 + 0x40], 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 [0x4524f0]
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 + 0x5c], eax
call eax
mov ebx, dword [0x45a320]
mov ecx, dword [0x42e2e8]
mov esi, dword [0x45a31c]
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 [0x45a318]
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 [0x452484]
add eax, 0x438
mov dword [esp + 4], eax
mov eax, dword [sym.imp.USER32.dll_DrawTextW]
mov dword [esp + 0x3c], eax
call eax
mov eax, dword [0x4524f4]
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 [0x45ae4c], 1
jg 0x418a00
mov esi, dword [0x45a2e0]
test esi, esi
jne 0x418be9
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
sub esp, 4
mov eax, dword [esp + 0x60]
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 [0x4524ec]
mov dword [esp], edi
mov dword [esp + 4], eax
call ebp
sub esp, 8
mov dword [esp + 4], 0x606060
mov eax, dword [esp + 0x5c]
mov dword [esp], edi
call eax
mov ecx, dword [0x45a320]
mov esi, dword [0x42e2e8]
mov ebx, dword [0x45a31c]
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 [0x45a318]
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
add eax, ebx
lea ebx, [esp + 0x80]
mov dword [esp + 0x7c], eax
mov eax, dword [0x452484]
mov dword [esp], ebx
lea edx, [eax + 0x442]
add eax, 0x9cc
mov dword [esp + 0x38], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
call fcn.0040fce0
lea edx, [esp + 0x70]
mov dword [esp], edi
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], 0x25
mov dword [esp + 8], 0xffffffff
call edx
mov eax, dword [0x4524f4]
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 + 0x5c]
mov dword [esp], edi
call eax
mov ebx, dword [0x45ae4c]
mov ecx, 0x20
sub esp, 8
mov word [esp + 0x80], cx
mov dword [esp + 0x84], 0x20
test ebx, ebx
jle 0x4189bb
mov dword [esp + 0x44], ebp
mov esi, 0x145
xor ebx, ebx
lea esi, [esi]
nop
mov edx, dword [0x45a2e0]
mov eax, 1
test edx, edx
jle 0x418b4d
xor eax, eax
cmp dword [0x45a2e8], ebx
sete al
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
add ebx, 1
mov dword [esp], edi
call eax
mov ebp, dword [0x45a320]
mov eax, esi
mov ecx, dword [0x45a31c]
sub esp, 8
imul eax, ebp
mov dword [esp + 0x10], 0x25
mov dword [esp + 8], 0xffffffff
mov dword [esp], edi
cdq
idiv dword [0x42e2e8]
add eax, ecx
mov dword [esp + 0x70], eax
lea eax, [esi + 0x32]
add esi, 0x3c
imul eax, ebp
cdq
idiv dword [0x42e2e8]
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 + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
call eax
sub esp, 0x14
cmp ebx, dword [0x45ae4c]
jl 0x418b30
mov esi, dword [0x45a2e0]
mov ebp, dword [esp + 0x44]
test esi, esi
je 0x4189c9
mov eax, dword [0x45a310]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
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
mov dword [esp + 0x50], 0
mov dword [esp + 0x44], 0x7d
mov dword [esp + 0x54], 0
lea esi, [esi]
nop
mov edx, dword [0x45a2e8]
xor eax, eax
cmp edx, 5
jg 0x418c4f
imul edx, edx, 0x7c
movzx eax, byte [edx + 0x45694d]
and eax, 0xfffffff0
cmp al, 0x10
sete al
shl eax, 0x1f
mov edx, dword [esp + 0x54]
sar eax, 0x1f
add eax, 6
cmp eax, edx
jle 0x4189c9
mov eax, dword [esp + 0x44]
mov ebx, 0xc8
lea edx, [eax - 5]
lea esi, [eax + 0x91]
mov dword [esp + 0x38], edx
mov dword [esp + 0x58], esi
nop
mov ecx, dword [0x45a320]
mov eax, ebx
mov dword [esp], ebp
mov edi, dword [0x42e2e8]
mov dword [esp + 0xc], 0
imul eax, ecx
cdq
idiv edi
add eax, dword [0x45a318]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
imul eax, ecx
cdq
idiv edi
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [0x45a320]
mov eax, ebx
mov edi, dword [0x42e2e8]
sub esp, 0x10
add ebx, 0x28
imul eax, ecx
mov dword [esp], ebp
cdq
idiv edi
add eax, dword [0x45a318]
mov dword [esp + 8], eax
mov eax, ecx
imul eax, esi
cdq
idiv edi
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_LineTo]
sub esp, 0xc
cmp ebx, 0x230
jne 0x418c80
mov ecx, dword [0x45a320]
mov edi, dword [esp + 0x38]
mov dword [esp], ebp
mov ebx, dword [0x42e2e8]
mov dword [esp + 0xc], 0
imul eax, ecx, 0xc8
cdq
idiv ebx
add eax, dword [0x45a318]
mov dword [esp + 8], eax
mov eax, edi
imul eax, ecx
cdq
idiv ebx
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [0x45a320]
mov ebx, dword [0x42e2e8]
sub esp, 0x10
imul eax, ecx, 0x208
mov dword [esp], ebp
cdq
idiv ebx
add eax, dword [0x45a318]
mov dword [esp + 8], eax
mov eax, edi
imul eax, ecx
cdq
idiv ebx
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [0x45a320]
mov ebx, dword [0x42e2e8]
sub esp, 0xc
imul eax, ecx, 0xc8
mov edi, dword [esp + 0x58]
mov dword [esp + 0xc], 0
mov dword [esp], ebp
cdq
idiv ebx
add eax, dword [0x45a318]
mov dword [esp + 8], eax
mov eax, edi
imul eax, ecx
cdq
idiv ebx
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [0x45a320]
mov ebx, dword [0x42e2e8]
sub esp, 0x10
imul eax, ecx, 0x208
mov dword [esp], ebp
cdq
idiv ebx
add eax, dword [0x45a318]
add eax, 1
mov dword [esp + 8], eax
mov eax, edi
imul eax, ecx
cdq
idiv ebx
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_LineTo]
sub esp, 0xc
cmp dword [esp + 0x54], 2
jle 0x4190e8
imul eax, dword [0x45a320], 0xc8
mov edi, dword [0x45a31c]
mov dword [esp + 0x20], 0xc000ca
mov dword [esp], ebp
cdq
idiv dword [0x42e2e8]
mov esi, eax
add eax, dword [0x45a318]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x38]
imul eax, dword [0x45a320]
mov dword [esp + 0x1c], ecx
mov dword [esp + 8], ecx
cdq
idiv dword [0x42e2e8]
mov ebx, eax
add edi, eax
mov eax, dword [esp + 0x60]
add edi, 1
mov dword [esp + 0x14], eax
imul eax, dword [0x45a320], 0xf0
mov dword [esp + 0x18], edi
mov dword [esp + 4], edi
cdq
idiv dword [0x42e2e8]
sub eax, esi
sub eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
imul eax, dword [0x45a320]
cdq
idiv dword [0x42e2e8]
sub eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.GDI32.dll_BitBlt]
mov dword [esp + 0x68], eax
call eax
sub esp, 0x24
mov dword [esp + 4], 1
mov eax, dword [esp + 0x40]
mov dword [esp], ebp
call eax
sub esp, 8
mov dword [esp + 4], 0x606060
mov eax, dword [esp + 0x5c]
mov dword [esp], ebp
call eax
mov ecx, dword [0x45a320]
mov ebx, dword [0x42e2e8]
sub esp, 8
mov esi, dword [0x45a31c]
mov edi, dword [esp + 0x44]
mov dword [esp + 4], 0x40
mov eax, edi
imul eax, ecx
cdq
idiv ebx
add eax, esi
mov dword [esp + 0x70], eax
lea eax, [edi + 0x8d]
mov edi, 0xf3
mov dword [esp + 0x4c], eax
imul eax, ecx
cdq
idiv ebx
add eax, esi
mov esi, dword [0x45a318]
mov dword [esp + 0x78], eax
imul eax, ecx, 0xcb
cdq
idiv ebx
add eax, esi
mov dword [esp + 0x74], eax
imul eax, ecx, 0xee
cdq
idiv ebx
mov ebx, dword [esp + 0x54]
lea edx, [ebx + 1]
mov dword [esp + 0x64], edx
mov dword [esp + 0x10], edx
add eax, esi
lea esi, [esp + 0x80]
mov dword [esp + 0x7c], eax
mov eax, dword [0x452484]
mov dword [esp], esi
lea edx, [eax + 0x44a]
add eax, 0x864
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
call fcn.0040fce0
lea edx, [esp + 0x70]
mov ebx, dword [esp + 0x3c]
mov dword [esp], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0x25
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
call ebx
xor ebx, ebx
sub esp, 0x14
mov dword [esp + 4], 0x703030
mov eax, dword [esp + 0x5c]
mov dword [esp], ebp
call eax
sub esp, 8
mov dword [esp + 0x48], esi
lea esi, [esi]
nop
mov eax, dword [esp + 0x50]
mov dword [esp], ebp
add eax, ebx
cmp dword [0x45ae04], eax
sete al
add ebx, 1
movzx eax, al
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
call eax
mov ecx, dword [0x45a320]
mov esi, dword [0x42e2e8]
sub esp, 8
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x40
imul eax, ecx
cdq
idiv esi
add eax, dword [0x45a31c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x4c]
imul eax, ecx
cdq
idiv esi
add eax, dword [0x45a31c]
mov dword [esp + 0x78], eax
mov eax, edi
imul eax, ecx
cdq
idiv esi
add eax, dword [0x45a318]
mov dword [esp + 0x74], eax
lea eax, [edi + 0x23]
add edi, 0x28
imul eax, ecx
cdq
idiv esi
mov esi, dword [esp + 0x48]
mov dword [esp], esi
add eax, dword [0x45a318]
mov dword [esp + 0x7c], eax
mov eax, dword [0x452484]
add eax, 0x9e6
mov dword [esp + 8], eax
call fcn.0040fce0
lea eax, [esp + 0x70]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], 0x25
mov dword [esp + 8], 0xffffffff
mov dword [esp], ebp
call eax
sub esp, 0x14
cmp ebx, 7
jne 0x418fe0
cmp dword [esp + 0x54], 2
mov esi, dword [esp + 0x48]
jbe 0x419300
mov eax, dword [esp + 0x64]
add dword [esp + 0x44], 0xc3
add dword [esp + 0x50], 7
mov dword [esp + 0x54], eax
jmp 0x418c30
mov ecx, dword [0x45a320]
mov edi, dword [esp + 0x38]
mov dword [esp], ebp
mov ebx, dword [0x42e2e8]
mov dword [esp + 0xc], 0
imul eax, ecx, 0x230
cdq
idiv ebx
add eax, dword [0x45a318]
mov dword [esp + 8], eax
mov eax, edi
imul eax, ecx
cdq
idiv ebx
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [0x45a320]
mov ebx, dword [0x42e2e8]
sub esp, 0x10
imul eax, ecx, 0x230
mov esi, dword [esp + 0x58]
mov dword [esp], ebp
cdq
idiv ebx
add eax, dword [0x45a318]
mov dword [esp + 8], eax
mov eax, esi
imul eax, ecx
cdq
idiv ebx
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [0x45a320]
mov ebx, dword [0x42e2e8]
sub esp, 0xc
imul eax, ecx, 0x258
mov dword [esp + 0xc], 0
mov dword [esp], ebp
cdq
idiv ebx
add eax, dword [0x45a318]
mov dword [esp + 8], eax
mov eax, edi
imul eax, ecx
cdq
idiv ebx
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [0x45a320]
mov ebx, dword [0x42e2e8]
sub esp, 0x10
imul eax, ecx, 0x258
mov dword [esp], ebp
cdq
idiv ebx
add eax, dword [0x45a318]
mov dword [esp + 8], eax
mov eax, esi
imul eax, ecx
cdq
idiv ebx
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [0x45a320]
mov ebx, dword [0x42e2e8]
sub esp, 0xc
imul eax, ecx, 0x230
mov dword [esp + 0xc], 0
mov dword [esp], ebp
cdq
idiv ebx
add eax, dword [0x45a318]
mov dword [esp + 8], eax
mov eax, edi
imul eax, ecx
cdq
idiv ebx
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [0x45a320]
mov ebx, dword [0x42e2e8]
sub esp, 0x10
imul eax, ecx, 0x258
mov dword [esp], ebp
imul edi, ecx
cdq
idiv ebx
add eax, dword [0x45a318]
mov dword [esp + 8], eax
mov eax, edi
cdq
idiv ebx
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [0x45a320]
mov ebx, dword [0x42e2e8]
sub esp, 0xc
imul eax, ecx, 0x230
mov dword [esp + 0xc], 0
mov dword [esp], ebp
cdq
idiv ebx
add eax, dword [0x45a318]
mov dword [esp + 8], eax
mov eax, esi
imul eax, ecx
cdq
idiv ebx
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [0x45a320]
mov ebx, dword [0x42e2e8]
sub esp, 0x10
imul eax, ecx, 0x258
mov dword [esp], ebp
imul esi, ecx
cdq
idiv ebx
add eax, dword [0x45a318]
add eax, 1
mov dword [esp + 8], eax
mov eax, esi
cdq
idiv ebx
add eax, dword [0x45a31c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_LineTo]
sub esp, 0xc
jmp 0x418e2b
imul eax, dword [0x45a320], 0x230
mov dword [esp + 0x20], 0xc000ca
mov dword [esp], ebp
cdq
idiv dword [0x42e2e8]
mov ebx, eax
add eax, dword [0x45a318]
lea edi, [eax + 1]
mov eax, dword [esp + 0x38]
imul eax, dword [0x45a320]
mov dword [esp + 0x1c], edi
mov dword [esp + 8], edi
cdq
idiv dword [0x42e2e8]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], eax
add eax, dword [0x45a31c]
lea ecx, [eax + 1]
imul eax, dword [0x45a320], 0x258
mov dword [esp + 0x18], ecx
mov dword [esp + 4], ecx
cdq
idiv dword [0x42e2e8]
sub eax, ebx
mov ebx, dword [esp + 0x58]
imul ebx, dword [0x45a320]
sub eax, 1
mov dword [esp + 0x10], eax
mov eax, ebx
cdq
idiv dword [0x42e2e8]
mov edx, dword [esp + 0x38]
sub eax, edx
sub eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
call eax
sub esp, 0x24
mov eax, dword [esp + 0x54]
mov dword [esp], ebp
add eax, 0x2a
cmp dword [0x45ae04], eax
sete al
movzx eax, al
add eax, 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
call eax
mov ecx, dword [0x45a320]
mov edi, dword [0x42e2e8]
sub esp, 8
mov ebx, dword [0x45a31c]
mov eax, dword [esp + 0x44]
mov dword [esp + 4], 0x40
mov dword [esp], esi
imul eax, ecx
cdq
idiv edi
add eax, ebx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x4c]
imul eax, ecx
cdq
idiv edi
add eax, ebx
mov ebx, dword [0x45a318]
mov dword [esp + 0x78], eax
imul eax, ecx, 0x233
cdq
idiv edi
add eax, ebx
mov dword [esp + 0x74], eax
imul eax, ecx, 0x256
cdq
idiv edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x10], edi
add eax, ebx
mov dword [esp + 0x7c], eax
mov eax, dword [0x452484]
lea edx, [eax + 0x248]
add eax, 0x9fa
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
call fcn.0040fce0
lea eax, [esp + 0x70]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], 0x25
mov dword [esp + 8], 0xffffffff
mov dword [esp], ebp
call eax
sub esp, 0x14
jmp 0x4190ca