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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c0015
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x64]
mov dword [esp + 0x3c], esi
mov dword [esi + 4], eax
call fcn.004bc0f6
lea ecx, [esp + 0x64]
xor edi, edi
push ecx
mov ecx, esi
mov dword [esp + 0x2a4], edi
call fcn.00439ed0
test eax, eax
je 0x439e98
mov edx, dword [0x4f4df4]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x64]
mov byte [esp + 0x2a0], 1
mov ecx, dword [eax + 0x5c]
test byte [ecx + 0x14], 0x20
je 0x439acf
push 0xf045
lea ecx, [esp + 0x18]
call fcn.004b2819
push 0xf046
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a4], 2
call fcn.004b2819
push 0xf047
lea ecx, [esp + 0x48]
mov byte [esp + 0x2a4], 3
call fcn.004b2819
push 0xf048
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a4], 4
call fcn.004b2819
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push edi
push edx
push 6
push eax
mov bl, 5
push ecx
push edi
lea ecx, [esp + 0xb8]
mov byte [esp + 0x2b8], bl
call fcn.004ad2ec
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xa0]
mov byte [esp + 0x2a0], 6
mov dword [esp + 0x12c], edx
call fcn.004ad44e
cmp eax, 1
je 0x439a30
lea ecx, [esp + 0x14c]
mov byte [esp + 0x2a0], 7
call fcn.004b27ab
lea ecx, [esp + 0xa0]
mov byte [esp + 0x2a0], bl
call fcn.004b2f28
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a0], 4
call fcn.004b27ab
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a0], 3
call fcn.004b27ab
lea ecx, [esp + 0x30]
mov byte [esp + 0x2a0], 2
call fcn.004b27ab
mov byte [esp + 0x2a0], 1
lea ecx, [esp + 0x14]
jmp 0x439e82
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xa0]
push eax
call fcn.004ad529
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2a4], 8
call fcn.004b28e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a0], 6
call fcn.004b27ab
lea ecx, [esp + 0x14c]
mov byte [esp + 0x2a0], 9
call fcn.004b27ab
lea ecx, [esp + 0xa0]
mov byte [esp + 0x2a0], bl
call fcn.004b2f28
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a0], 4
call fcn.004b27ab
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a0], 3
call fcn.004b27ab
lea ecx, [esp + 0x30]
mov byte [esp + 0x2a0], 2
call fcn.004b27ab
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a0], 1
call fcn.004b27ab
mov ecx, dword [0x4f4df4]
mov dword [esp + 0x38], ecx
push 0xe000
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2a4], 0xa
call fcn.004b3888
xor edx, edx
mov eax, dword [esp + 0x38]
mov ecx, dword [0x4f4df4]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], 0x14
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x34]
mov byte [esp + 0x2a0], 0xb
cmp dword [eax - 8], edi
jne 0x439b67
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x5c], edi
call fcn.004ad955
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a4], 0xc
call fcn.004b28e4
lea ecx, [esp + 0x14]
mov byte [esp + 0x2a0], 0xb
call fcn.004b27ab
jmp 0x439b6b
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x20]
call fcn.004b5965
mov eax, dword [esp + 0x64]
mov byte [esp + 0x2a0], 0xd
mov ecx, dword [eax + 0x5c]
mov edx, dword [ecx + 0x10]
lea ecx, [esp + 0x20]
push edx
call fcn.004b5a1c
lea eax, [esp + 0x64]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x34], 1
call fcn.00439fe0
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x50]
push edx
push eax
call dword [sym.imp.GDI32.dll_StartDocA]
cmp eax, 0xffffffff
jne 0x439bea
lea ecx, [esp + 0x64]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.0043a570
lea ecx, [esp + 0x20]
call fcn.004b5a53
push 0xffffffffffffffff
push edi
push 0xf106
call fcn.004b7507
jmp 0x439e54
mov eax, dword [esp + 0x64]
xor edx, edx
xor ecx, ecx
mov esi, dword [eax + 0x5c]
xor eax, eax
mov ax, word [esi + 0x1a]
mov dx, word [esi + 0x1c]
mov cx, word [esi + 0x18]
cmp eax, edx
jae 0x439c0d
mov dword [esp + 0x10], edx
mov eax, edx
xor edi, edi
mov di, word [esi + 0x1e]
cmp eax, edi
jbe 0x439c1d
mov dword [esp + 0x10], edi
mov eax, edi
cmp ecx, edx
jae 0x439c23
mov ecx, edx
cmp ecx, edi
jbe 0x439c29
mov ecx, edi
cmp eax, ecx
sbb edx, edx
and edx, 0xfffffffe
inc edx
cmp eax, 0xffff
mov dword [esp + 0x30], edx
jne 0x439c42
mov dword [esp + 0x10], eax
jmp 0x439c48
add eax, edx
mov dword [esp + 0x10], eax
cmp ecx, eax
mov dword [esp + 0x78], ecx
je 0x439e1b
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
lea ecx, [esp + 0x64]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x40]
push edx
call fcn.0043a1e0
mov eax, dword [esp + 0x74]
test eax, eax
je 0x439e1b
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x78]
push 0xa
push eax
call esi
mov ecx, dword [esp + 0x28]
push 8
push ecx
mov edi, eax
call esi
push edi
push eax
push 0
lea edx, [esp + 0x94]
push 0
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x28]
push 8
push eax
call esi
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
push 0xa
push ecx
fmul qword [0x4c5db0]
fstp qword [esp + 0x4c]
call esi
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x4c5db0]
fstp qword [esp + 0x14]
fld qword [esp + 0x44]
fmul qword [0x4c5da8]
call fcn.004989f0
fld qword [esp + 0x14]
mov dword [esp + 0x88], eax
call fcn.004989f0
mov edx, dword [esp + 0x94]
mov dword [esp + 0x8c], eax
fld qword [esp + 0x44]
sub edx, eax
mov dword [esp + 0x94], edx
call fcn.004989f0
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x88]
sub ecx, eax
mov eax, dword [esp + 0x28]
push 2
push edx
push eax
mov dword [esp + 0x9c], ecx
call dword [sym.imp.GDI32.dll_DPtoLP]
fld qword [esp + 0x14]
fmul qword [0x4c5da0]
fiadd dword [esp + 0x94]
call fcn.004989f0
mov ecx, dword [esp + 0x28]
push 8
push ecx
mov dword [esp + 0x1c], eax
call esi
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
mov edi, eax
push edx
sar edi, 1
call dword [sym.imp.GDI32.dll_StartPage]
test eax, eax
jl 0x439e2d
lea eax, [esp + 0x64]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x44]
call fcn.0043a1e0
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x64]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0043a4d0
mov ecx, dword [0x4f4df4]
mov dword [esp + 0x1c], ecx
push ebx
lea edx, [esp + 0x20]
push 0x4e9e4c
push edx
mov byte [esp + 0x2ac], 0xe
call fcn.004ad14b
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
push edi
call dword [edx + 0x5c]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
mov byte [esp + 0x2a0], 0xd
lea ecx, [esp + 0x1c]
jl 0x439e28
call fcn.004b27ab
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x78], eax
jne 0x439c5a
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.GDI32.dll_EndDoc]
jmp 0x439e38
call fcn.004b27ab
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.GDI32.dll_AbortDoc]
lea eax, [esp + 0x64]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x44]
call fcn.0043a570
lea ecx, [esp + 0x20]
call fcn.004b5a53
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a0], 0xb
call fcn.004b5a9a
lea ecx, [esp + 0x40]
mov byte [esp + 0x2a0], 0xa
call fcn.004b27ab
mov byte [esp + 0x2a0], 1
lea ecx, [esp + 0x38]
call fcn.004b27ab
lea ecx, [esp + 0x34]
mov byte [esp + 0x2a0], 0
call fcn.004b27ab
lea ecx, [esp + 0x64]
mov dword [esp + 0x2a0], 0xffffffff
call fcn.004bc17e
mov ecx, dword [esp + 0x298]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4