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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xba4
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ecx, dword [eax + 0x300]
test ch, 8
je 0x451fa8
mov ax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
lea edx, [esp + 0x5b0]
mov ecx, dword [edi]
push ecx
push 1
push 5
push edx
call fcn.004b2c2e
push 5
lea eax, [esp + 0x5c4]
push str._PDF_
push eax
call fcn.004b3090
add esp, 0x1c
test eax, eax
je 0x451fe5
mov ax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00451f10
test eax, eax
jne 0x451ff9
mov ax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x1b0]
push 0x200
push ecx
call fcn.00476470
lea edx, [esp + 0x1b8]
push 0x4f7a50
push edx
call fcn.004b313e
mov ebx, eax
add esp, 0x10
test ebx, ebx
mov dword [esp + 0x3c], ebx
jne 0x452035
mov ax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push 0
push 0
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x20], 0x264
mov dword [esp + 0x1c], 0x318
call fcn.004b263c
mov eax, dword [edi]
add esp, 0xc
xor esi, esi
test byte [eax + 0xc], 0x10
jne 0x452212
mov edx, dword [eax + 4]
dec edx
mov dword [eax + 4], edx
mov eax, dword [edi]
mov ecx, dword [eax + 4]
test ecx, ecx
jl 0x4520bd
mov ecx, dword [eax]
xor ebx, ebx
mov bl, byte [ecx]
inc ecx
mov dword [eax], ecx
jmp 0x4520c8
push eax
call fcn.004b2563
add esp, 4
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45220e
mov ecx, dword [esp + 0x3c]
push ecx
push ebx
call fcn.004b39b5
add esp, 8
mov byte [esp + esi + 0x5b0], bl
inc esi
cmp ebx, 0xa
je 0x4520fd
cmp ebx, 0xd
je 0x4520fd
cmp esi, 0x400
jl 0x452202
push 9
lea edx, [esp + 0x5b4]
push str._MediaBox
push edx
mov byte [esp + esi + 0x5bc], 0
call fcn.004b3090
add esp, 0xc
test eax, eax
jne 0x452200
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x5c0]
push str._MediaBox___lf__lf__lf__lf
push ecx
call fcn.004b1bd9
add esp, 0x18
cmp eax, 4
je 0x452180
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
lea eax, [esp + 0x5c0]
push str._MediaBox__lf__lf__lf__lf
push eax
call fcn.004b1bd9
add esp, 0x18
jmp 0x452200
fld qword [esp + 0x30]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x41
je 0x452200
fld qword [esp + 0x40]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
je 0x452200
fld qword [esp + 0x18]
fsub qword [esp + 0x30]
call fcn.004b1b34
fld qword [esp + 0x18]
mov dword [esp + 0x14], eax
call fcn.004b1b34
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x40
jne 0x4521cf
inc dword [esp + 0x14]
fld qword [esp + 0x20]
fsub qword [esp + 0x30]
call fcn.004b1b34
fld qword [esp + 0x20]
mov dword [esp + 0x10], eax
call fcn.004b1b34
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x40
jne 0x452200
inc dword [esp + 0x10]
xor esi, esi
mov eax, dword [edi]
test byte [eax + 0xc], 0x10
je 0x4520a2
mov ebx, dword [esp + 0x3c]
push ebx
call fcn.004b30c8
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx + 0x30e]
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fild dword [esp + 0x18]
fmul st(1)
fmul qword [0x4df170]
fsub qword [0x4dd030]
call fcn.004b1b34
fild dword [esp + 0x14]
mov esi, eax
fmul st(1)
fmul qword [0x4df170]
fsub qword [0x4dd030]
call fcn.004b1b34
mov ebx, eax
lea eax, [esp + 0x3b4]
push 0x200
push eax
fstp st(0)
call fcn.00476470
lea ecx, [esp + 0x9bc]
push ecx
call fcn.00451a40
push ebx
push esi
lea edx, [esp + 0xc8]
push str._g_dx_d
push edx
call fcn.004b1a92
lea eax, [esp + 0x3d0]
lea ecx, [esp + 0x150]
push eax
push str._sOutputFile_s
push ecx
call fcn.004b1a92
mov edi, dword [ebp + 0xc]
lea edx, [esp + 0xcc]
movsx eax, word [edi + 0x30e]
push eax
push eax
push str._r_dx_d
push edx
call fcn.004b1a92
mov eax, dword [edi + 0x300]
add esp, 0x3c
test ah, 0x80
mov dword [esp + 0x48], str._dBATCH
je 0x45236e
lea eax, [esp + 0xb0]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x1b0]
mov dword [esp + 0x7c], eax
lea edx, [esp + 0x130]
mov eax, str._c_quit
mov dword [esp + 0x4c], str._dFirstPage1
mov dword [esp + 0x50], str._dLastPage1
mov dword [esp + 0x54], str._dMaxBitmap300000000
mov dword [esp + 0x58], str._sDEVICEtiff24nc
mov dword [esp + 0x5c], 0x4fe740
mov dword [esp + 0x60], str._dNOPAUSE
mov dword [esp + 0x64], str._dSAFER
mov dword [esp + 0x68], str._dTextAlphaBits4
mov dword [esp + 0x6c], str._dGraphicsAlphaBits4
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
push 0x10
jmp 0x4523e1
lea eax, [esp + 0xb0]
lea ecx, [esp + 0xa0]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x1b0]
mov dword [esp + 0x74], eax
lea edx, [esp + 0x130]
mov eax, str._c_quit
mov dword [esp + 0x4c], str._dMaxBitmap300000000
mov dword [esp + 0x50], str._sDEVICEtiff24nc
mov dword [esp + 0x54], 0x4fe740
mov dword [esp + 0x58], str._dNOPAUSE
mov dword [esp + 0x5c], str._dSAFER
mov dword [esp + 0x60], str._dTextAlphaBits4
mov dword [esp + 0x64], str._dGraphicsAlphaBits4
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
push 0xe
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x9b4]
push ecx
push edx
call fcn.00451db0
add esp, 0xc
lea eax, [esp + 0x1b0]
push eax
call fcn.004c14b9
lea ecx, [esp + 0x3b4]
lea edx, [esp + 0x9c]
push ecx
push edx
call fcn.00475c30
lea eax, [esp + 0xa4]
push 0x11
push eax
call fcn.00475c50
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x45244b
lea ecx, [esp + 0x1b0]
push ecx
call fcn.004c14b9
add esp, 4
mov ax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Portable_Document_Format
push edi
push esi
call fcn.004692f0
push esi
mov edi, eax
call fcn.00475e80
lea edx, [esp + 0x3c0]
push edx
call fcn.004c14b9
add esp, 0x14
mov ax, di
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret