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

Disassembly:
sub esp, 0xcb0
push ebx
push ebp
push esi
push edi
push 0xdc
push 0x40
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
xor eax, eax
mov ecx, 0x37
mov edi, ebx
rep stosd dword es:[edi], eax
mov word [ebx + 0x44], 0xdc
mov word [ebx + 0x4c], 2
mov ebp, 1
mov dword [ebx + 0x48], ebp
mov ecx, 0x10
lea edi, [esp + 0x6c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x82d28]
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x70], 0x42
mov dword [esp + 0x74], eax
mov dword [esp + 0x84], 0x140
mov dword [esp + 0x78], ebx
call dword [sym.imp.comdlg32.dll_PrintDlgW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x7c]
push 8
mov dword [esi + 0x4b8], ebp
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push edi
call ebp
mov ebx, eax
push 0xa
dec ebx
push edi
mov dword [esp + 0x4c], ebx
call ebp
dec eax
cmp ebx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
jg 0x418342
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
jl 0x418346
mov dword [esp + 0x10], eax
mov eax, 0x4bda12f7
imul dword [esp + 0x14]
push 0x4311d0
push 0
push 2
sar edx, 5
mov ebp, dword [sym.imp.GDI32.dll_CreateFontW]
push 0
mov ebx, edx
push 0
shr ebx, 0x1f
add ebx, edx
push 0
mov eax, 0x66666667
imul dword [esp + 0x28]
push 0
push 0
push 0
push 0x12c
sar edx, 6
push 0
mov eax, edx
shr eax, 0x1f
push 0
add eax, edx
push eax
push ebx
call ebp
push 0x4311d0
push 0
push 2
push 0
push 0
mov dword [esp + 0x50], eax
push 0xcc
push 0
mov eax, 0x66666667
imul dword [esp + 0x30]
push 0
push 0
push 0x1f4
sar edx, 5
push 0
mov ecx, edx
push 0
shr ecx, 0x1f
push 0
add ecx, edx
push ecx
call ebp
push 0x4311d0
push 0
push 2
push 0
push 0
push 0xcc
push 0
push 0
push 0
push 0x1f4
push 0
push 0
push 0
push ebx
mov dword [esp + 0x50], eax
call ebp
push 0x4311d0
push 0
push 2
push 0
push 0
push 0xcc
push 0
push 0
push 0
push 0x1f4
push 0
push 0x384
mov dword [esp + 0x68], eax
push 0
mov eax, 0x88888889
mov ecx, dword [esp + 0x44]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call ebp
push 0x808080
push 0
push 0
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [esp + 0x10], eax
lea eax, [esi + 0x82508]
push 0x400
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.0041b7e0
mov eax, dword [esi + 0x82908]
add esp, 0xc
xor ebp, ebp
test eax, eax
jle 0x418512
mov ebx, dword [esp + 0x14]
mov eax, 0x1b4e81b5
imul ebx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x1b4e81b5
imul ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
lea ebx, [esi + 0x84590]
jmp 0x4184c0
mov ecx, dword [esp + 0x1c]
lea esp, [esp]
mov edx, dword [ebx]
push edx
push ecx
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edx, dword [ebx + 0x400]
imul edx, dword [esp + 0x14]
mov ecx, dword [ebx]
push ecx
mov dword [esp + ebp*4 + 0x4c4], eax
mov eax, dword [ebx - 0x2088]
push edx
push 0
mov dword [esp + ebp*4 + 0xcc], eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [esp + ebp*4 + 0x8c0], eax
mov dword [ebx - 0x2088], eax
mov eax, dword [esi + 0x82908]
inc ebp
add ebx, 4
cmp ebp, eax
jl 0x4184b8
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call ebx
mov ebp, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0xffffff
call ebp
push 0x808080
mov dword [esp + 0x20], eax
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
push edi
mov dword [esp + 0x48], eax
call ebx
mov edx, dword [esp + 0x3c]
push edx
push edi
call ebx
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
xor eax, eax
push 1
mov dword [esp + 0x58], eax
push edi
mov dword [esp + 0x50], 0x14
mov dword [esp + 0x54], 0x431b70
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ecx, [esp + 0x48]
push ecx
push edi
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
je 0x4188b4
push edi
call dword [sym.imp.GDI32.dll_StartPage]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x20]
cmp ebp, ebx
mov eax, 0x88888889
jle 0x4185ec
imul ebp
add edx, ebp
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x88888889
imul ebx
add edx, ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ebx
sub edx, eax
push edx
mov eax, ebp
sub eax, ecx
push eax
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ecx
jmp 0x41862a
imul ebx
add edx, ebx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, ebx
sub eax, ecx
push eax
mov eax, 0x88888889
imul ebp
add edx, ebp
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ebp
sub edx, eax
push edx
mov eax, 0x66666667
imul ebp
sar edx, 2
mov eax, edx
shr eax, 0x1f
push ecx
add eax, edx
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.004199d0
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
add esp, 0x14
push eax
mov eax, dword [esp + 0x30]
push edx
push eax
push ecx
lea ecx, [esp + 0x6c]
push ecx
call fcn.004199d0
mov edx, dword [eax + 4]
mov ecx, dword [eax]
add esp, 0x14
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push eax
push edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x34]
push eax
push ecx
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x18]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esi + 0x10]
push edx
push 1
push 0x431b6c
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esi + 0x4b0]
test ecx, ecx
mov dword [esp + 0x20], eax
je 0x4186c2
mov edx, dword [esi + 0x14]
neg edx
shl edx, 1
jmp 0x4186c6
mov edx, eax
neg edx
mov ecx, dword [esi + 0x4a8]
test ecx, ecx
je 0x4186d5
mov ecx, dword [esi + 0x14]
jmp 0x4186d7
mov ecx, eax
neg ecx
cmp dword [esi + 0x4ac], 0
je 0x4186e5
mov eax, dword [esi + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x4a4]
test eax, eax
je 0x4186f8
mov eax, dword [esi + 0x14]
jmp 0x4186fc
mov eax, dword [esp + 0x20]
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x6c]
push edx
call fcn.004199d0
mov edx, dword [eax]
add esp, 4
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x3c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x50]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0xd0]
push ecx
call fcn.00419a60
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x58], eax
lea eax, [esi + 0x824f8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x58]
add esp, 0x24
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
cmp ebp, ebx
jge 0x4187a1
mov ecx, dword [esp + 0x38]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [esp + 0xcc4]
push ebx
call fcn.0041b333
mov ecx, dword [esi + 0x14]
add esp, 4
push eax
shl ecx, 2
mov eax, 0x66666667
imul ecx
mov ecx, dword [esi + 0x824f8]
sar edx, 1
mov eax, edx
shr eax, 0x1f
push ebx
add eax, edx
add eax, dword [esi + 0x82504]
push eax
lea ebx, [esi + 0x824f8]
push ecx
push edi
call dword [sym.imp.GDI32.dll_TextOutW]
mov ebp, dword [esp + 0x18]
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x10]
push edx
sub esp, 0x10
mov eax, ebx
mov edx, dword [eax]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
push edi
mov ecx, esi
call fcn.00417780
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
push 0
push eax
push ebp
sub esp, 0x10
mov ecx, ebx
mov ebp, dword [ecx]
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ecx
push edi
mov ecx, esi
call dword [edx + 8]
test eax, eax
jne 0x41887b
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
sub esp, 0x10
mov ecx, ebx
mov eax, dword [ecx]
mov edx, esp
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
push edi
mov ecx, esi
call fcn.00417920
mov ecx, dword [ebx]
lea edx, [esp + 0x4c0]
push edx
mov edx, dword [ebx + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 8], ecx
push edi
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00417b70
push edi
call dword [sym.imp.GDI32.dll_EndPage]
push edi
call dword [sym.imp.GDI32.dll_EndDoc]
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call ebx
push 0x400
lea ecx, [esp + 0xc4]
push ecx
lea eax, [esi + 0x82508]
push eax
call fcn.0041b7e0
mov ebp, dword [esi + 0x82908]
add esp, 0xc
dec ebp
js 0x418922
lea edx, [esi + ebp*4 + 0x82508]
mov dword [esp + 0x10], edx
mov eax, dword [esp + ebp*4 + 0x4c0]
push eax
call ebx
mov eax, dword [esp + ebp*4 + 0x8c0]
mov ecx, dword [esp + ebp*4 + 0xc0]
mov edx, dword [esp + 0x10]
push eax
mov dword [edx], ecx
call ebx
mov ecx, dword [esp + 0x10]
dec ebp
sub ecx, 4
test ebp, ebp
mov dword [esp + 0x10], ecx
jge 0x4188f1
mov ecx, dword [esp + 0x1c]
push ecx
call ebx
mov edx, dword [esp + 0x40]
push edx
call ebx
mov eax, dword [esp + 0x3c]
push eax
call ebx
mov ecx, dword [esp + 0x18]
push ecx
call ebx
mov edx, dword [esp + 0x38]
push edx
call ebx
mov eax, dword [esp + 0x24]
push eax
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
mov dword [esi + 0x4b8], 0
pop esi
pop ebp
pop ebx
add esp, 0xcb0
ret 4