Function at 0x4184a0
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]
push 0xdc
mov edi, eax
push 0
push edi
call fcn.004238f0
push 0x42
lea eax, [esp + 0x7c]
push 0
mov ebx, 1
push eax
mov word [edi + 0x44], 0xdc
mov dword [edi + 0x48], ebx
mov word [edi + 0x4c], 2
call fcn.004238f0
mov ecx, dword [esi + 0x82d28]
add esp, 0x18
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x70], 0x42
mov dword [esp + 0x74], ecx
mov dword [esp + 0x84], 0x140
mov dword [esp + 0x78], edi
call dword [sym.imp.comdlg32.dll_PrintDlgW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edi, dword [esp + 0x7c]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push edi
mov dword [esi + 0x4b8], ebx
call ebp
mov ebx, eax
push 0xa
sub ebx, 1
push edi
mov dword [esp + 0x4c], ebx
call ebp
sub eax, 1
cmp ebx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
jg 0x41855c
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
jl 0x418560
mov dword [esp + 0x10], eax
mov eax, 0x4bda12f7
imul dword [esp + 0x14]
push 0x43e294
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 0x43e294
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 0x43e294
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 + 0x58], eax
call ebp
push 0x43e294
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 + 0x64], 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 + 0x44], 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.00423970
xor ebp, ebp
add esp, 0xc
cmp dword [esi + 0x82908], ebp
jle 0x418726
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 + 0x18], ecx
mov dword [esp + 0x14], eax
lea ebx, [esi + 0x84590]
jmp 0x4186d4
mov ecx, dword [esp + 0x18]
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
add ebp, 1
add ebx, 4
cmp ebp, dword [esi + 0x82908]
jl 0x4186d0
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 + 0x1c], eax
call ebp
mov ecx, dword [esp + 0x18]
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
push edi
mov dword [esp + 0x50], 0x14
mov dword [esp + 0x54], 0x43eb5c
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.GDI32.dll_StartDocW]
test eax, eax
je 0x418af5
push edi
call dword [sym.imp.GDI32.dll_StartPage]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x1c]
cmp ebp, ebx
mov eax, 0x88888889
jle 0x418800
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 0x41883e
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.00419c40
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
add esp, 0x14
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push ecx
lea ecx, [esp + 0x6c]
push ecx
call fcn.00419c40
mov edx, dword [eax + 4]
mov ecx, dword [eax]
add esp, 0x14
mov dword [esp + 0x28], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push eax
push edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
push eax
push ecx
push edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [esp + 0x20]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea edx, [esi + 0x10]
push edx
push 1
push 0x43eb58
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push 7
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp dword [esi + 0x4b0], 0
mov dword [esp + 0x1c], eax
je 0x4188d5
mov edx, dword [esi + 0x14]
neg edx
add edx, edx
jmp 0x4188d9
mov edx, eax
neg edx
cmp dword [esi + 0x4a8], 0
je 0x4188e7
mov ecx, dword [esi + 0x14]
jmp 0x4188e9
mov ecx, eax
neg ecx
cmp dword [esi + 0x4ac], 0
je 0x4188f7
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x4a4], 0
mov dword [esp + 0x14], eax
je 0x418909
mov eax, dword [esi + 0x14]
jmp 0x41890d
mov eax, dword [esp + 0x1c]
push edx
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x6c]
push edx
call fcn.00419c40
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 ecx, dword [esp + 0x34]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0xd0]
push eax
call fcn.00419cd0
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x824f8], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x824fc], ecx
mov dword [esi + 0x82500], edx
mov edx, dword [esp + 0x34]
add esp, 0x24
push edx
push edi
mov dword [esi + 0x82504], eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp ebp, ebx
jge 0x4189b1
mov eax, dword [esp + 0x34]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0xcc4]
mov eax, edx
lea ebx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4189c0
mov ecx, dword [esi + 0x14]
sub eax, ebx
add ecx, ecx
sar eax, 1
push eax
push edx
add ecx, ecx
mov eax, 0x66666667
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, dword [esi + 0x82504]
mov edx, dword [esi + 0x824f8]
push ecx
push edx
push edi
call dword [sym.imp.GDI32.dll_TextOutW]
mov ebx, dword [esp + 0x20]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x824f8]
mov edx, dword [esi + 0x824fc]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x82500]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x82504]
mov dword [eax + 8], ecx
push edi
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00417970
mov ebp, dword [esp + 0x38]
mov ecx, dword [esi + 0x824f8]
mov edx, dword [esi]
mov edx, dword [edx + 8]
push 0
push ebp
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x824fc]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x82500]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x82504]
mov dword [eax + 0xc], ecx
push edi
mov ecx, esi
call edx
test eax, eax
jne 0x418aaf
mov ecx, dword [esi + 0x824f8]
mov edx, dword [esi + 0x824fc]
push eax
push ebp
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x82500]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x82504]
mov dword [eax + 8], ecx
push edi
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00417b00
mov ecx, dword [esi + 0x824f8]
mov edx, dword [esi + 0x824fc]
lea eax, [esp + 0x4c0]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 0x82500]
mov dword [eax + 4], edx
mov edx, dword [esi + 0x82504]
mov dword [eax + 8], ecx
push edi
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.00417d70
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.00423970
mov ebp, dword [esi + 0x82908]
add esp, 0xc
sub ebp, 1
js 0x418b61
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
sub dword [esp + 0x10], 4
sub ebp, 1
test ebp, ebp
jge 0x418b34
mov ecx, dword [esp + 0x18]
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 + 0x20]
push ecx
call ebx
mov edx, dword [esp + 0x34]
push edx
call ebx
mov eax, dword [esp + 0x38]
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