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

Disassembly:
sub esp, 0x2d0
mov eax, dword [0x451050]
xor eax, esp
mov dword [esp + 0x2cc], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x20], edi
cmp dword [0x459fc0], edi
jne 0x41f12d
xor eax, eax
jmp 0x41f525
mov eax, dword [esp + 0x2e4]
push eax
call fcn.0041efa0
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x41f126
push 0x84
lea ecx, [esp + 0x54]
push edi
push ecx
call fcn.00437610
mov edx, dword [0x459fc0]
mov ecx, dword [0x4524a8]
mov eax, dword [0x459fc4]
mov dword [esp + 0x5c], edx
mov edx, dword [0x459f94]
mov dword [esp + 0x6c], ecx
mov ecx, dword [0x4524b0]
mov dword [esp + 0x74], edx
mov edx, dword [0x4524b4]
mov dword [esp + 0x80], ecx
mov ecx, dword [0x4524b8]
mov dword [esp + 0x78], edx
mov edx, dword [0x4524bc]
mov dword [esp + 0x60], eax
or eax, 0xffffffff
mov dword [esp + 0x7c], ecx
mov ecx, dword [0x4524ac]
mov dword [esp + 0x84], edx
mov edx, dword [0x4524c0]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, dword [0x4524a0]
mov dword [esp + 0x88], ecx
mov ecx, dword [0x4524c4]
mov dword [esp + 0x8c], edx
mov edx, dword [0x4524c8]
add esp, 0xc
cmp dword [0x458788], 8
mov dword [esp + 0x64], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
jb 0x41f20b
mov ecx, dword [0x458774]
mov dword [esp + 0x9c], ecx
jmp 0x41f216
mov dword [esp + 0x9c], 0x458774
test dword [0x452498], 0x80000
mov edx, dword [0x4524e4]
mov ecx, dword [0x4524e8]
mov dword [esp + 0xa0], edx
mov edx, dword [0x4524ec]
mov dword [esp + 0xa4], ecx
mov ecx, dword [0x4524f0]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xc0], 7
mov dword [esp + 0xc4], 1
je 0x41f295
mov edx, dword [0x459fc8]
mov ecx, dword [0x459fcc]
mov dword [esp + 0xc8], edx
mov edx, dword [0x459fd0]
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
jmp 0x41f29c
mov dword [esp + 0xc8], edi
test eax, 0x100000
je 0x41f2c0
test eax, 0x200000
je 0x41f2c0
movzx eax, word [0x4524cc]
movzx ecx, word [0x4524ce]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
lea edx, [esp + 0x50]
push edx
call fcn.0042e0f0
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, edi
je 0x41f51a
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
lea eax, [esp + 0xd8]
push eax
push 0x4e2b
mov ebx, 0x100
mov dword [esp + 0x38], 0x14
call fcn.0040af30
add esp, 8
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0xdc]
push ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
call dword [sym.imp.GDI32.dll_StartDocW]
cmp eax, 0xffffffff
je 0x41f4fd
push ebp
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jle 0x41f4fd
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push edi
mov ebx, eax
push 0
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x41f4dd
mov eax, dword [esi]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x4c], eax
test eax, eax
je 0x41f4d6
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push ebp
call edi
push 0xa
push ebp
mov ebx, eax
call edi
push 4
push ebp
mov dword [esp + 0x20], eax
call edi
push 6
mov esi, eax
push ebp
imul esi, esi, 0x64
call edi
mov ecx, eax
mov eax, ebx
imul ecx, ecx, 0x64
imul eax, dword [0x452444]
cdq
idiv esi
push 0x58
push ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
imul eax, dword [0x452448]
cdq
idiv ecx
mov dword [esp + 0x34], eax
mov eax, ebx
imul eax, dword [0x45244c]
cdq
idiv esi
mov esi, dword [esp + 0x20]
add eax, dword [esp + 0x30]
sub ebx, eax
mov eax, esi
imul eax, dword [0x452450]
cdq
idiv ecx
add eax, dword [esp + 0x34]
sub esi, eax
mov dword [esp + 0x20], esi
call edi
push 0x5a
push ebp
mov dword [esp + 0x1c], eax
call edi
mov esi, dword [esp + 0x24]
push 0x58
push esi
mov dword [esp + 0x4c], eax
call edi
push 0x5a
push esi
mov dword [esp + 0x50], eax
call edi
mov ecx, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
imul eax, dword [esp + 0x14]
cdq
idiv dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [edx + 0x10]
imul eax, dword [esp + 0x44]
cdq
idiv ecx
cmp edi, ebx
mov ecx, eax
mov dword [esp + 0x14], ecx
jle 0x41f463
imul eax, ebx
cdq
idiv edi
mov edi, ebx
mov dword [esp + 0x14], eax
mov ecx, eax
mov edx, dword [esp + 0x18]
cmp ecx, edx
jle 0x41f47d
mov eax, edi
imul eax, edx
cdq
idiv ecx
mov edi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, ebx
mov ebx, dword [esp + 0x28]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jg 0x41f490
mov ebx, eax
push 4
push ebp
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x14]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x34]
push edx
push 0
push 0
push esi
push eax
push edi
push ecx
push ebx
push ebp
call dword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [esp + 0x4c]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
jle 0x41f4fb
push ebp
call dword [sym.imp.GDI32.dll_EndDoc]
test eax, eax
jle 0x41f4fb
mov dword [esp + 0x20], 1
xor edi, edi
mov eax, dword [esi]
cmp eax, edi
je 0x41f50c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call fcn.00409900
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00433c32
add esp, 0x2d0
ret