Function at 0x518d6c
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 0x518fa1
cmp word [edi + 0x1c], 0
jne 0x519006
push dword [ebp + 0xc]
call fcn.00507a3b
mov dword [esp], 0x265
push edx
push eax
call fcn.004d3bc0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
call fcn.00507a3b
push 0x3eb
push edx
push eax
call fcn.004d3bc0
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.0051926d
push dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x18]
call fcn.004d2a7e
add esp, 0x34
test eax, eax
je 0x518ea0
push 0x3ec
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004d3bc0
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.004d2a7e
add esp, 0x14
test eax, eax
je 0x518ea9
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004d2a7e
pop ecx
cmp eax, 5
pop ecx
jne 0x518e57
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004d3587
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
and byte [ecx + eax], 0
jmp 0x518e6b
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004d3548
push eax
call fcn.00596917
add esp, 0xc
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
call fcn.0044d5a0
pop ecx
test eax, eax
pop ecx
jne 0x518ea9
lea eax, [ebp - 0x94]
push 0x3a
push eax
call fcn.0044d700
inc eax
pop ecx
cmp eax, 1
pop ecx
mov dword [ebp - 4], eax
jne 0x518ea9
lea eax, [ebp - 0x94]
mov dword [ebp - 4], eax
cmp word [ebp - 0x30], 0
je 0x518edd
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004d2a7e
pop ecx
test eax, eax
pop ecx
jne 0x518edd
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 0x518ef7
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.004daa9a
add esp, 0x10
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004d2a7e
pop ecx
test eax, eax
pop ecx
je 0x518f83
push str.____PlateColor:
push dword [ebp + 8]
call fcn.004daa9a
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004d2a7e
add esp, 0x10
cmp eax, 5
jne 0x518f53
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004d3587
push dword [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.004da676
add esp, 0x18
jmp 0x518f74
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.004d3548
pop ecx
movzx eax, ax
pop ecx
push eax
push 0x68aa18
push dword [ebp + 8]
call fcn.004daa9a
add esp, 0xc
push 0x680c08
push dword [ebp + 8]
call fcn.004daa9a
pop ecx
pop ecx
push str.____BeginPageSetup_n
push dword [ebp + 8]
call fcn.004daa9a
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebx + 4]
call fcn.004e9019
add esp, 0x14
cmp word [edi + 0x1c], 0
jne 0x519006
cmp dword [ebx + 0x20], 0
jne 0x519006
cmp dword [edi + 0x18], 2
jl 0x519006
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
call fcn.00507b47
push dword [ebp + 0xc]
call fcn.00507a93
movsx eax, ax
add esp, 0xc
cmp eax, 0x5a
je 0x518fe8
cmp eax, 0x10e
je 0x518fe8
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x20]
jmp 0x518ff4
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_n
push dword [ebp + 8]
call fcn.004daa9a
add esp, 0x10
lea eax, [ebp - 0x40]
push eax
push 0x51
push dword [ebp + 0xc]
call fcn.00507d3a
add esp, 0xc
test ax, ax
je 0x51902d
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
push 0x51
call fcn.00519535
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push 0x52
push dword [ebp + 0xc]
call fcn.00507d3a
add esp, 0xc
test ax, ax
je 0x519054
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
push 0x52
call fcn.00519535
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push 0x53
push dword [ebp + 0xc]
call fcn.00507d3a
add esp, 0xc
test ax, ax
je 0x51907b
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
push 0x53
call fcn.00519535
add esp, 0xc
cmp dword [edi + 0x90], 0
jne 0x5190a2
cmp word [edi + 0x38], 0
je 0x5190a2
cmp dword [edi + 0x18], 2
jl 0x5190a2
push 1
push dword [ebp + 8]
push edi
push dword [ebp + 0xc]
call fcn.005192b7
add esp, 0x10
cmp word [edi + 0x34], 0
je 0x5190bf
cmp word [edi + 0x1c], 0
jne 0x5190bf
push str.userdict__pgsave_save_put_n
push dword [ebp + 8]
call fcn.004daa9a
pop ecx
pop ecx
inc dword [esi + 0x80]
cmp word [edi + 0x3c], 0
je 0x519101
push dword [ebx + 4]
call fcn.004b1887
push eax
call fcn.004d87ed
push edx
push eax
call fcn.004d2a7e
add esp, 0x10
test eax, eax
je 0x5190f2
push dword [ebp + 8]
call fcn.00519492
jmp 0x519100
push str.PDFVars_begin_PDF_begin_PDFVars_InitAll_get_exec_n
push dword [ebp + 8]
call fcn.004daa9a
pop ecx
pop ecx
fld dword [edi + 0x80]
fcomp qword [0x625900]
fnstsw ax
sahf
jbe 0x519165
fld dword [edi + 0x84]
fcomp qword [0x625900]
fnstsw ax
sahf
jbe 0x519165
fld dword [edi + 0x80]
fcom qword [0x6256a8]
fnstsw ax
sahf
je 0x519163
fld dword [edi + 0x84]
fcom qword [0x6256a8]
fnstsw ax
sahf
je 0x519161
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.004daa9a
add esp, 0x18
jmp 0x519165
fstp st(0)
fstp st(0)
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x519181
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call eax
add esp, 0xc
test ax, ax
je 0x519268
xor eax, eax
cmp word [edi + 0x3a], ax
je 0x5191dc
cmp word [edi + 0x1c], ax
je 0x5191dc
cmp word [edi + 0x74], ax
je 0x5191dc
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.004daa9a
add esp, 0x18
xor eax, eax
cmp word [edi + 0x6a], ax
je 0x51921b
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xc]
call fcn.00517d15
pop ecx
test ax, ax
pop ecx
je 0x519230
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.004daa9a
add esp, 0x20
jmp 0x519230
cmp dword [ebx + 0x20], eax
jne 0x519230
push eax
push dword [ebp + 8]
push edi
push dword [ebp + 0xc]
call fcn.005192b7
add esp, 0x10
lea ecx, [esi + 0x90]
mov word [esi + 0x60], 1
call fcn.0051d2fe
push esi
push 0x51860f
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.00575e53
mov eax, dword [ebx + 0x24]
add esp, 0x10
test eax, eax
je 0x519268
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call eax
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret