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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
mov edi, dword [ebx + 8]
cmp word [edi + 0x3a], 0
je 0x519ea7
cmp word [edi + 0x1c], 0
jne 0x519f0c
push dword [ebp + 0xc]
call fcn.005085d7
mov dword [esp], 0x265
push edx
push eax
call fcn.004d4399
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
call fcn.005085d7
push 0x3eb
push edx
push eax
call fcn.004d4399
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x94]
push 0x3c
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
push dword [ebx + 4]
call fcn.0051a173
push dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x18]
call fcn.004d3257
add esp, 0x34
test eax, eax
je 0x519da6
push 0x3ec
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004d4399
push edx
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
call fcn.004d3257
add esp, 0x14
test eax, eax
je 0x519daf
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004d3257
pop ecx
cmp eax, 5
pop ecx
jne 0x519d5d
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004d3d60
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
and byte [ecx + eax], 0
jmp 0x519d71
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004d3d21
push eax
call fcn.0059bd85
add esp, 0xc
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
call fcn.0044d7b0
pop ecx
test eax, eax
pop ecx
jne 0x519daf
lea eax, [ebp - 0x94]
push 0x3a
push eax
call fcn.0044d910
inc eax
pop ecx
cmp eax, 1
pop ecx
mov dword [ebp - 4], eax
jne 0x519daf
lea eax, [ebp - 0x94]
mov dword [ebp - 4], eax
cmp word [ebp - 0x30], 0
je 0x519de3
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004d3257
pop ecx
test eax, eax
pop ecx
jne 0x519de3
mov eax, dword [esi + 4]
inc dword [eax + 0x90]
mov eax, dword [esi + 4]
push dword [eax + 0x90]
push dword [ebp - 4]
push str.____Page:__S__d_n
jmp 0x519dfd
mov eax, dword [esi + 4]
inc dword [eax + 0x90]
mov eax, dword [esi + 4]
push dword [eax + 0x90]
push dword [ebp - 4]
push str.____Page:__s__d_n
push dword [ebp + 8]
call fcn.004db2dc
add esp, 0x10
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004d3257
pop ecx
test eax, eax
pop ecx
je 0x519e89
push str.____PlateColor:
push dword [ebp + 8]
call fcn.004db2dc
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004d3257
add esp, 0x10
cmp eax, 5
jne 0x519e59
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004d3d60
push dword [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.004daeb8
add esp, 0x18
jmp 0x519e7a
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004d3d21
pop ecx
movzx eax, ax
pop ecx
push eax
push 0x691e20
push dword [ebp + 8]
call fcn.004db2dc
add esp, 0xc
push 0x687d50
push dword [ebp + 8]
call fcn.004db2dc
pop ecx
pop ecx
push str.____BeginPageSetup_n
push dword [ebp + 8]
call fcn.004db2dc
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebx + 4]
call fcn.004e988b
add esp, 0x14
cmp word [edi + 0x1c], 0
jne 0x519f0c
cmp dword [ebx + 0x20], 0
jne 0x519f0c
cmp dword [edi + 0x18], 2
jl 0x519f0c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
call fcn.005086e3
push dword [ebp + 0xc]
call fcn.0050862f
movsx eax, ax
add esp, 0xc
cmp eax, 0x5a
je 0x519eee
cmp eax, 0x10e
je 0x519eee
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x20]
jmp 0x519efa
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x20]
push eax
push ecx
push str.___PageSize___f__f___Policies_____PageSize_1_______setpagedevice_stopped_pop_n
push dword [ebp + 8]
call fcn.004db2dc
add esp, 0x10
lea eax, [ebp - 0x40]
push eax
push 0x51
push dword [ebp + 0xc]
call fcn.005088d6
add esp, 0xc
test ax, ax
je 0x519f33
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
push 0x51
call fcn.0051a43b
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push 0x52
push dword [ebp + 0xc]
call fcn.005088d6
add esp, 0xc
test ax, ax
je 0x519f5a
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
push 0x52
call fcn.0051a43b
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push 0x53
push dword [ebp + 0xc]
call fcn.005088d6
add esp, 0xc
test ax, ax
je 0x519f81
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
push 0x53
call fcn.0051a43b
add esp, 0xc
cmp dword [edi + 0x90], 0
jne 0x519fa8
cmp word [edi + 0x38], 0
je 0x519fa8
cmp dword [edi + 0x18], 2
jl 0x519fa8
push 1
push dword [ebp + 8]
push edi
push dword [ebp + 0xc]
call fcn.0051a1bd
add esp, 0x10
cmp word [edi + 0x34], 0
je 0x519fc5
cmp word [edi + 0x1c], 0
jne 0x519fc5
push str.userdict__pgsave_save_put_n
push dword [ebp + 8]
call fcn.004db2dc
pop ecx
pop ecx
inc dword [esi + 0x80]
cmp word [edi + 0x3c], 0
je 0x51a007
push dword [ebx + 4]
call fcn.0050493f
push eax
call fcn.004d9008
push edx
push eax
call fcn.004d3257
add esp, 0x10
test eax, eax
je 0x519ff8
push dword [ebp + 8]
call fcn.0051a398
jmp 0x51a006
push str.PDFVars_begin_PDF_begin_PDFVars_InitAll_get_exec_n
push dword [ebp + 8]
call fcn.004db2dc
pop ecx
pop ecx
fld dword [edi + 0x80]
fcomp qword [0x62b920]
fnstsw ax
sahf
jbe 0x51a06b
fld dword [edi + 0x84]
fcomp qword [0x62b920]
fnstsw ax
sahf
jbe 0x51a06b
fld dword [edi + 0x80]
fcom qword [0x62b6c8]
fnstsw ax
sahf
je 0x51a069
fld dword [edi + 0x84]
fcom qword [0x62b6c8]
fnstsw ax
sahf
je 0x51a067
push ecx
push ecx
fstp qword [esp]
push ecx
push ecx
fstp qword [esp]
push str._F__F_scale_n
push dword [ebp + 8]
call fcn.004db2dc
add esp, 0x18
jmp 0x51a06b
fstp st(0)
fstp st(0)
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x51a087
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call eax
add esp, 0xc
test ax, ax
je 0x51a16e
xor eax, eax
cmp word [edi + 0x3a], ax
je 0x51a0e2
cmp word [edi + 0x1c], ax
je 0x51a0e2
cmp word [edi + 0x74], ax
je 0x51a0e2
mov eax, dword [esi + 0x7c]
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
sub edx, eax
mov eax, 0x8000
add edx, eax
sar edx, 0x10
push edx
mov edx, dword [esi + 0x78]
sub edx, ecx
add ecx, 0x8000
add edx, eax
mov eax, dword [esi + 0x7c]
add eax, 0x8000
sar edx, 0x10
sar eax, 0x10
push edx
push eax
sar ecx, 0x10
push ecx
push str._d__d__d__d_rectclip_n
push dword [ebp + 8]
call fcn.004db2dc
add esp, 0x18
xor eax, eax
cmp word [edi + 0x6a], ax
je 0x51a121
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xc]
call fcn.00518c27
pop ecx
test ax, ax
pop ecx
je 0x51a136
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push str.___f__f__f__f__f__f___concat_n
push dword [ebp + 8]
call fcn.004db2dc
add esp, 0x20
jmp 0x51a136
cmp dword [ebx + 0x20], eax
jne 0x51a136
push eax
push dword [ebp + 8]
push edi
push dword [ebp + 0xc]
call fcn.0051a1bd
add esp, 0x10
lea ecx, [esi + 0x90]
mov word [esi + 0x60], 1
call fcn.0051e471
push esi
push 0x5194fe
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.0057a2dd
mov eax, dword [ebx + 0x24]
add esp, 0x10
test eax, eax
je 0x51a16e
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call eax
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret