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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50a5b8
push eax
mov eax, dword [0x57cf7c]
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
xor ebx, ebx
push esi
push edi
cmp eax, ebx
mov edi, ecx
jne 0x42da53
xor eax, eax
jmp 0x42df40
cmp dword [edi + 0x3c], ebx
jne 0x42da6c
push ebx
push 0x40
push str.Can_not__open_the_pdf_document_
call fcn.004ebdf1
xor eax, eax
jmp 0x42df40
mov esi, dword [esp + 0xa4]
cmp esi, ebx
jne 0x42da8b
push ebx
push 0x40
push str.Can_not__get_the_dc_of_the_printer_
call fcn.004ebdf1
xor eax, eax
jmp 0x42df40
lea ecx, [esp + 0x2c]
call fcn.004e3dde
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0xa0], ebx
call fcn.004e3e95
test eax, eax
jne 0x42dad1
push ebx
push 0x40
push str.Failed_to_attach_printer_
call fcn.004ebdf1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x9c], 0xffffffff
call fcn.004e3f13
xor eax, eax
jmp 0x42df40
xor eax, eax
mov ebp, 1
mov dword [esp + 0x64], eax
mov ecx, edi
mov dword [esp + 0x68], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x6c], eax
mov dword [esp + 0x64], 0x14
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x424]
mov dword [esp + 0x68], eax
call fcn.0042d550
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x64]
push ecx
push edx
xor esi, esi
call dword [sym.imp.GDI32.dll_StartDocA]
cmp eax, ebx
jle 0x42df21
mov ecx, edi
mov dword [esp + 0x54], ebp
call fcn.0042c920
mov ecx, dword [edi + 0x484]
mov edx, dword [edi + 0x450]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x480]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x60]
mov dword [esp + 0x60], edx
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x60]
push ecx
push edx
mov ecx, edi
call fcn.0042c960
fild dword [edi + 0x4cc]
fidiv dword [edi + 0x4d0]
fild dword [edi + 0x4d4]
fidiv dword [edi + 0x4d8]
fstp qword [esp + 0x44]
fild dword [edi + 0x4bc]
fmul st(1)
call fcn.004a1790
fild dword [edi + 0x4b8]
mov dword [esp + 0x4c], eax
fmul qword [esp + 0x44]
call fcn.004a1790
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], vtable.CRgn.0
mov eax, dword [edi + 0x478]
mov byte [esp + 0x9c], 1
cmp eax, ebp
jne 0x42dc86
mov eax, dword [edi + 0x4e8]
cmp eax, ebx
mov dword [esp + 0x10], eax
jle 0x42dbde
fild dword [esp + 0x10]
fmul st(1)
jmp 0x42dbe4
fld qword [0x512a38]
call fcn.004a1790
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x4ec]
cmp eax, ebx
mov dword [esp + 0x10], eax
jle 0x42dc05
fild dword [esp + 0x10]
fmul qword [esp + 0x44]
jmp 0x42dc0b
fld qword [0x512a38]
call fcn.004a1790
mov ebp, dword [edi + 0x44]
mov esi, eax
mov eax, dword [edi + 0x4c]
mov dword [esp + 0x18], esi
sub eax, ebp
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [edi + 0x4a0]
fmul st(1)
fiadd dword [esp + 0x14]
call fcn.004a1790
mov ecx, dword [edi + 0x50]
mov edx, dword [edi + 0x48]
sub ecx, edx
mov ebp, eax
fstp st(0)
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fmul qword [edi + 0x4a0]
fmul qword [esp + 0x44]
fiadd dword [esp + 0x18]
call fcn.004a1790
mov edx, dword [esp + 0x14]
push eax
push ebp
push esi
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x28]
call fcn.004e499d
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
call fcn.004e43b5
jmp 0x42dc88
fstp st(0)
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x10], ebx
cmp esi, ebx
jle 0x42dead
mov ecx, dword [esp + 0x58]
cmp ecx, ebx
mov dword [esp + 0x3c], ebx
jle 0x42de93
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_StartPage]
cmp eax, ebx
jle 0x42de7a
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x40]
cmp ebp, eax
jg 0x42de53
push ebp
mov ecx, edi
call fcn.0042c4e0
mov esi, eax
cmp esi, ebx
je 0x42de3f
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 0x30]
cmp eax, edx
jne 0x42de3f
push esi
mov ecx, edi
call fcn.0042df60
lea eax, [esp + 0x14]
push ebp
push eax
mov ecx, edi
call fcn.0042d770
mov ecx, dword [0x57d040]
lea edx, [esp + 0x78]
mov eax, 1
push edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x88], eax
push eax
mov eax, dword [esi + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x84], ebx
sub ecx, eax
mov dword [esp + 0x9c], ebx
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esi + 0x1c]
push eax
call fcn.00431930
mov ecx, dword [esi + 0x1c]
push 0xffffffffffffffff
call fcn.00431a10
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x2c]
push ebx
push ebx
sub edx, eax
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
sub edx, ecx
push edx
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esi + 0x1c]
push eax
call fcn.00431aa0
cmp dword [edi + 0x474], 1
jne 0x42ddd9
mov ecx, dword [edi + 0x40]
cmp ecx, ebx
je 0x42ddd9
mov edx, dword [esi + 0x2c]
push edx
mov edx, dword [esp + 0x18]
sub esp, 0x10
mov eax, esp
push ebp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x44]
push eax
call fcn.00422e00
cmp dword [edi + 0x45c], ebx
je 0x42de37
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp esi, ebx
jne 0x42ddfa
mov esi, 2
cmp edx, ebx
jne 0x42de03
mov edx, 2
cmp ecx, dword [esp + 0x4c]
jl 0x42de0c
sub ecx, 2
cmp eax, dword [esp + 0x50]
jl 0x42de15
sub eax, 2
push 0
push 1
sub esp, 0x10
mov ebx, esp
mov dword [ebx], esi
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov dword [ebx + 0xc], eax
call fcn.0042cf60
xor ebx, ebx
cmp dword [edi + 0x464], ebx
je 0x42de4c
mov eax, dword [esp + 0x40]
inc ebp
cmp ebp, eax
jle 0x42dcd2
mov esi, dword [esp + 0xa8]
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.GDI32.dll_EndPage]
cmp dword [esp + 0xac], ebx
jne 0x42de7e
mov eax, dword [esp + 0x44]
inc eax
cmp eax, esi
mov dword [esp + 0x44], eax
jl 0x42dcaf
jmp 0x42de7e
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x58]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x42dcab
cmp dword [esp + 0xac], ebx
je 0x42dead
mov eax, dword [esp + 0x10]
inc eax
cmp eax, esi
mov dword [esp + 0x10], eax
jl 0x42dc9f
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_EndDoc]
cmp dword [edi + 0x478], 1
jne 0x42defd
lea ecx, [esp + 0x24]
call fcn.004e49f4
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push ecx
push edx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x28]
call fcn.004e499d
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
call fcn.004e43b5
lea ecx, [esp + 0x24]
call fcn.004e49f4
mov dword [esp + 0x24], vtable.CGdiObject.0
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], 2
call fcn.004e49f4
mov esi, dword [esp + 0x54]
mov byte [esp + 0x9c], bl
lea ecx, [esp + 0x2c]
call fcn.004e3ecc
lea ecx, [esp + 0x2c]
mov dword [esp + 0x9c], 0xffffffff
call fcn.004e3f13
mov eax, esi
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x90
ret 0xc