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

Disassembly:
sub esp, 0xca4
push ebx
push ebp
push edi
push 0xdc
push 0x40
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 + 0x68]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x82d28]
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x6c], 0x42
mov dword [esp + 0x70], eax
mov dword [esp + 0x80], 0x140
mov dword [esp + 0x74], ebx
call dword [sym.imp.comdlg32.dll_PrintDlgW]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, dword [esp + 0x78]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push ebx
mov dword [esi + 0x4b8], ebp
call edi
push 0xa
mov ebp, eax
push ebx
dec ebp
call edi
dec eax
cmp ebp, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], ebp
jg 0x41893b
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
jl 0x41893f
mov dword [esp + 0x18], eax
mov eax, 0x4bda12f7
imul dword [esp + 0x14]
push 0x433748
push 0
push 2
sar edx, 5
push 0
mov edi, edx
push 0
shr edi, 0x1f
add edi, edx
push 0
mov eax, 0x66666667
imul dword [esp + 0x30]
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 edi
call dword [sym.imp.GDI32.dll_CreateFontW]
push 0x433748
push 0
push 2
push 0
push 0
mov dword [esp + 0x3c], 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 dword [sym.imp.GDI32.dll_CreateFontW]
push 0x433748
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 edi
mov edi, dword [sym.imp.GDI32.dll_CreateFontW]
mov dword [esp + 0x54], eax
call edi
push 0x433748
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 + 0x5c], eax
push 0
mov eax, 0x88888889
mov ecx, dword [esp + 0x4c]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call edi
push 0x808080
push 0
push 0
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_CreatePen]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x82508]
push 0x400
push eax
lea ecx, [esp + 0xb8]
push ecx
call fcn.0041b7e0
mov eax, dword [esi + 0x82908]
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], 0
jle 0x418b21
mov edi, dword [esp + 0x14]
mov eax, 0x1b4e81b5
imul edi
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x1b4e81b5
imul edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
lea edi, [esi + 0x84590]
jmp 0x418ac3
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
push edx
push ecx
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov edx, dword [edi + 0x400]
mov ecx, dword [esp + 0x10]
imul edx, dword [esp + 0x20]
mov dword [esp + ecx*4 + 0x4b0], eax
mov eax, dword [edi - 0x2088]
mov dword [esp + ecx*4 + 0xb0], eax
mov ecx, dword [edi]
push ecx
push edx
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ecx, dword [esp + 0x10]
mov dword [esp + ecx*4 + 0x8b0], eax
mov dword [edi - 0x2088], eax
mov eax, dword [esi + 0x82908]
inc ecx
add edi, 4
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x418abf
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
push 0xffffff
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x808080
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x28], eax
call edi
mov edx, dword [esp + 0x28]
push edx
push ebx
call edi
push 0
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
xor eax, eax
push 1
mov dword [esp + 0x64], eax
push ebx
mov dword [esp + 0x5c], 0x14
mov dword [esp + 0x60], 0x433c18
mov dword [esp + 0x64], 0
mov dword [esp + 0x6c], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
lea ecx, [esp + 0x54]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
je 0x418eb7
push ebx
call dword [sym.imp.GDI32.dll_StartPage]
mov edi, dword [esp + 0x40]
cmp ebp, edi
jle 0x418c11
mov eax, 0x88888889
imul ebp
add edx, ebp
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [0x43b53c], eax
mov eax, ebp
sub eax, ecx
mov dword [0x43b540], eax
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edi
sub eax, edx
mov edx, ecx
mov ecx, dword [0x43b53c]
mov dword [esp + 0x48], ecx
mov ecx, dword [0x43b540]
jmp 0x418c6c
mov eax, 0x66666667
imul ebp
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [0x43b538], eax
mov eax, 0x88888889
imul edi
add edx, edi
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x88888889
imul ebp
add edx, ebp
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebp
sub eax, edx
mov edx, edi
sub edx, ecx
mov dword [0x43b544], edx
mov edx, dword [0x43b538]
mov dword [esp + 0x48], ecx
mov ecx, eax
mov eax, dword [0x43b544]
mov dword [0x43b540], ecx
mov dword [0x43b544], eax
mov dword [esp + 0x38], ecx
mov ecx, dword [0x43b544]
push ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x3c]
mov dword [0x43b538], edx
mov edx, dword [esp + 0x4c]
mov eax, dword [0x43b538]
push ecx
push edx
push eax
push ebx
mov dword [0x43b53c], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
call dword [sym.imp.GDI32.dll_Rectangle]
mov edx, dword [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esi + 0x10]
push eax
push 1
push 0x433c24
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esi + 0x4b0]
test ecx, ecx
je 0x418cea
mov ecx, dword [esi + 0x14]
neg ecx
shl ecx, 1
jmp 0x418cee
mov ecx, eax
neg ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x4a8]
test ecx, ecx
je 0x418d01
mov edx, dword [esi + 0x14]
jmp 0x418d03
mov edx, eax
mov ecx, dword [esi + 0x4ac]
neg edx
test ecx, ecx
je 0x418d14
mov ecx, dword [esi + 0x14]
jmp 0x418d16
mov ecx, eax
cmp dword [esi + 0x4a4], 0
je 0x418d22
mov eax, dword [esi + 0x14]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x30]
add eax, edx
mov edx, dword [esp + 0x34]
add ecx, edx
mov edx, dword [esp + 0x4c]
mov dword [0x43b53c], ecx
mov ecx, dword [esp + 0x38]
add edx, ecx
mov ecx, dword [esp + 0x3c]
mov dword [0x43b540], edx
mov edx, dword [esp + 0x50]
add ecx, edx
lea edx, [esi + 0x824f8]
mov dword [edx], eax
mov dword [0x43b538], eax
mov eax, dword [0x43b53c]
mov dword [edx + 4], eax
mov eax, dword [0x43b540]
mov dword [edx + 8], eax
mov dword [0x43b544], ecx
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp ebp, edi
jge 0x418d9c
mov edx, dword [esp + 0x2c]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0xcb4]
push edi
call fcn.0041b76a
mov ecx, dword [esi + 0x14]
mov ebp, dword [esi + 0x82504]
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 edi
add eax, edx
add eax, ebp
push eax
lea edi, [esi + 0x824f8]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_TextOutW]
mov edx, dword [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 4], edx
mov edx, dword [edi + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x28]
push esi
mov edi, ebx
call fcn.00417dd0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi]
push 0
push ecx
push edx
sub esp, 0x10
lea ebp, [esi + 0x824f8]
mov ecx, ebp
mov edi, dword [ecx]
mov edx, esp
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [edx + 4], edi
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx + 8], edi
mov dword [edx + 0xc], ecx
push ebx
mov ecx, esi
call dword [eax + 8]
test eax, eax
jne 0x418e7e
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push edx
push eax
sub esp, 0x10
mov ecx, ebp
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
push ebx
mov edi, esi
mov dword [edx + 0xc], ecx
call fcn.00417f60
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov dword [edx + 4], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x4c0]
push edx
push ebx
push esi
call fcn.004181b0
push ebx
call dword [sym.imp.GDI32.dll_EndPage]
push ebx
call dword [sym.imp.GDI32.dll_EndDoc]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call edi
push 0x400
lea ecx, [esp + 0xb4]
push ecx
lea eax, [esi + 0x82508]
push eax
call fcn.0041b7e0
mov ebp, dword [esi + 0x82908]
add esp, 0xc
dec ebp
js 0x418f25
lea edx, [esi + ebp*4 + 0x82508]
mov dword [esp + 0x10], edx
mov eax, dword [esp + ebp*4 + 0x4b0]
push eax
call edi
mov eax, dword [esp + ebp*4 + 0x8b0]
mov ecx, dword [esp + ebp*4 + 0xb0]
mov edx, dword [esp + 0x10]
push eax
mov dword [edx], ecx
call edi
mov ecx, dword [esp + 0x10]
dec ebp
sub ecx, 4
test ebp, ebp
mov dword [esp + 0x10], ecx
jge 0x418ef4
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov edx, dword [esp + 0x20]
push edx
call edi
mov eax, dword [esp + 0x28]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
mov edx, dword [esp + 0x2c]
push edx
call edi
mov eax, dword [esp + 0x24]
push eax
call edi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebp
mov dword [esi + 0x4b8], 0
pop ebx
add esp, 0xca4
ret 4