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

Disassembly:
push 0xffffffffffffffff
push 0x4953dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [0x4c1830]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 8]
mov dword [esp + 0x22c], eax
call fcn.0048d38b
mov esi, dword [esp + 0x240]
push esi
push 0x4000c
push 0
lea ecx, [esp + 0x80]
mov dword [esp + 0x244], 0
call fcn.00484f44
mov eax, dword [esp + 0x244]
test eax, eax
mov byte [esp + 0x238], 1
jne 0x440ac7
lea ecx, [esp + 0x74]
mov byte [esp + 0x238], 0
call fcn.0048b177
lea ecx, [esp + 8]
mov dword [esp + 0x238], 0xffffffff
call fcn.0048d869
jmp 0x440d9a
test esi, esi
jne 0x440acf
xor eax, eax
jmp 0x440ad2
mov eax, dword [esi + 0x1c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push ebp
push 0
push eax
call ebx
lea ecx, [esp + 0x7c]
call fcn.00484f15
test esi, esi
mov ebp, eax
je 0x440af1
mov esi, dword [esi + 0x1c]
push 1
push esi
call ebx
cmp ebp, 2
je 0x440d73
mov eax, dword [esp + 0xec]
mov eax, dword [eax + 0x10]
push eax
lea ecx, [esp + 0x14]
call fcn.0048d7eb
mov dword [esp + 0x1c], 1
call fcn.0048b000
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
push 0xe000
mov byte [esp + 0x244], 2
call fcn.0048aff5
test eax, eax
je 0x440b53
push 0xe000
push eax
lea ecx, [esp + 0x28]
call fcn.00422bd0
mov esi, dword [esp + 0x24c]
mov edx, dword [esi + 0xfc]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea ecx, [esi + 0xfc]
push 0x100
lea eax, [esp + 0x138]
push eax
mov dword [esp + 0x30], 0x14
call dword [edx]
mov al, byte [esp + 0x134]
test al, al
jne 0x440bc0
mov ebx, dword [edi]
mov ecx, esi
call fcn.0044f380
push eax
lea ecx, [esp + 0x138]
push ecx
mov ecx, edi
call dword [ebx + 0x78]
mov al, byte [esp + 0x134]
test al, al
je 0x440c26
lea eax, [esp + 0x134]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440bd0
sub eax, edx
cmp byte [esp + eax + 0x133], 0x23
jne 0x440c00
lea eax, [esp + 0x134]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440bf0
sub eax, edx
mov byte [esp + eax + 0x133], cl
lea edx, [esp + 0x134]
push 0x2f
push edx
call fcn.00474760
add esp, 8
test eax, eax
je 0x440c19
mov byte [eax], 0x5f
lea eax, [esp + 0x134]
mov dword [esp + 0x2c], eax
jmp 0x440c2e
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.GDI32.dll_StartDocA]
lea ecx, [esp + 0x3c]
mov ebp, eax
call fcn.004942d5
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push ecx
mov byte [esp + 0x248], 3
call esi
mov edx, dword [esp + 0x18]
push 0xa
push edx
mov ebx, eax
call esi
push eax
push ebx
push 0
push 0
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ebx, dword [esp + 0x24c]
mov edx, dword [edi]
push ebx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call dword [edx + 0x20]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x70]
movzx ecx, word [eax + 0x1c]
cmp ecx, 0x64
movzx eax, word [eax + 0x1e]
mov dword [esp + 0x24], eax
mov esi, ecx
ja 0x440d05
nop
cmp esi, dword [esp + 0x24]
ja 0x440d05
test ebp, ebp
je 0x440d05
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_StartPage]
mov edx, dword [edi]
push ebx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov dword [esp + 0x5c], esi
call dword [edx + 0x24]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_EndPage]
mov edx, dword [ebx + 0x10c]
xor ecx, ecx
test eax, eax
mov al, byte [edx + 0x11080]
setg cl
test al, al
mov ebp, ecx
je 0x440d05
inc esi
cmp esi, 0x64
jbe 0x440cb0
mov eax, dword [edi]
push ebx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call dword [eax + 0x28]
test ebp, ebp
je 0x440d28
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
jmp 0x440d33
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_AbortDoc]
lea ecx, [esp + 0x10]
call fcn.0048d853
lea ecx, [esp + 0x3c]
mov byte [esp + 0x240], 2
call fcn.00494361
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x240], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440d73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x240], 0
call fcn.0048b177
lea ecx, [esp + 0x10]
mov dword [esp + 0x240], 0xffffffff
call fcn.0048d869
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x228]
pop esi
call fcn.0047471e
add esp, 0x234
ret 8