Function at 0x4b58c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d681
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x164]
push 0xb8
push 0
push eax
mov dword [ebp - 0x16c], edi
call fcn.004dead0
add esp, 0xc
lea ecx, [ebp - 0x164]
push 1
call fcn.004b06d0
xor bl, bl
mov dword [ebp - 4], 0
cmp dword [edi + 0x10], 0
je 0x4b5e05
lea eax, [esi + 0x84]
mov dword [ebp - 0x178], eax
mov eax, dword [eax]
mov dword [ebp - 0x170], eax
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x4b598c
lea esp, [esp]
cmp dword [edi + 0x14], 8
lea ecx, [esi + 0x10]
jb 0x4b595d
mov eax, dword [edi]
jmp 0x4b595f
mov eax, edi
push dword [edi + 0x10]
push eax
push dword [ecx + 0x10]
push 0
call fcn.00408670
test eax, eax
jns 0x4b597c
mov esi, dword [esi + 8]
mov eax, dword [ebp - 0x170]
jmp 0x4b5986
mov eax, esi
mov esi, dword [esi]
mov dword [ebp - 0x170], eax
cmp byte [esi + 0xd], 0
je 0x4b5950
mov esi, dword [ebp - 0x178]
cmp eax, dword [esi]
je 0x4b59bc
mov ecx, dword [eax + 0x20]
add eax, 0x10
cmp dword [eax + 0x14], 8
jb 0x4b59a4
mov eax, dword [eax]
push ecx
push eax
push dword [edi + 0x10]
mov ecx, edi
push 0
call fcn.00408670
test eax, eax
mov eax, dword [ebp - 0x170]
jns 0x4b59be
mov eax, dword [esi]
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x170]
mov eax, dword [eax]
cmp eax, dword [esi]
je 0x4b59d8
mov bl, byte [eax + 0x28]
jmp 0x4b5e05
mov ecx, edi
call fcn.0041e2d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b5d81
push 0x40
push 1
mov ecx, edi
call fcn.0041e2d0
push eax
lea ecx, [ebp - 0x164]
call fcn.004b7a10
cmp dword [ebp - 0x104], 0
je 0x4b5d81
mov eax, dword [ebp - 0x164]
mov eax, dword [eax + 4]
cmp dword [ebp + eax - 0x158], 0
jne 0x4b5d81
push dword [ebp - 0x16c]
mov eax, dword [ebp + eax - 0x12c]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x170], 1
test eax, eax
push dword [ebp - 0x170]
sete byte [ebp - 0x17c]
mov dword [ebp - 0x38], 0xf
push 0
push dword [ebp - 0x17c]
mov dword [ebp - 0x3c], 0
push eax
mov byte [ebp - 0x4c], 0
call fcn.004af590
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
test ecx, ecx
jne 0x4b5a97
mov byte [ebp - 4], cl
cmp dword [ebp - 0x38], 0x10
jb 0x4b5d81
push dword [ebp - 0x4c]
call fcn.0040823e
add esp, 4
jmp 0x4b5d81
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push 0xfde9
cmovae eax, dword [ebp - 0x4c]
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x170], ecx
push eax
call fcn.00465640
add esp, 0xc
cmp dword [ebp - 0x54], 0
jne 0x4b5af6
cmp dword [ebp - 0x50], 8
jb 0x4b5add
push dword [ebp - 0x64]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
mov byte [ebp - 4], al
jmp 0x4b5a7d
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x534a18
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00407370
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0041be00
add esp, 0xc
mov byte [ebp - 4], 3
test eax, eax
sete al
cmp dword [ebp - 0x20], 8
mov byte [ebp - 0x165], al
jb 0x4b5b69
push dword [ebp - 0x34]
call fcn.0040823e
mov al, byte [ebp - 0x165]
add esp, 4
test al, al
je 0x4b5b8e
lea ecx, [ebp - 0x1c]
call fcn.0041c7d0
lea ecx, [ebp - 0x64]
call fcn.00408450
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.0044eb30
jmp 0x4b5d81
push 0x534a1c
lea ecx, [ebp - 0x94]
call fcn.00407370
push str.OEMPDFPassthrough
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 5
call fcn.00407370
push str.ADBEPDFSupportedStandard
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 6
call fcn.00407370
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
lea esp, [esp]
cmp esi, edi
je 0x4b5c78
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x94]
push eax
push esi
call fcn.004b6560
add esp, 0xc
test al, al
lea eax, [ebp - 0x34]
jne 0x4b5c23
push eax
lea eax, [ebp - 0xac]
push eax
push esi
call fcn.004b6560
add esp, 0xc
test al, al
lea eax, [ebp - 0x34]
je 0x4b5c41
cmp dword [ebp - 0x20], 8
push str.true
cmovae eax, dword [ebp - 0x34]
push eax
call fcn.004099a7
add esp, 8
test eax, eax
jne 0x4b5c5c
mov bl, 1
jmp 0x4b5c5c
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.004b6560
add esp, 0xc
movzx ebx, bl
test al, al
mov eax, 1
cmovne ebx, eax
cmp dword [ebp - 0x20], 8
jb 0x4b5c6d
push dword [ebp - 0x34]
call fcn.0040823e
add esp, 4
add esi, 0x18
test bl, bl
je 0x4b5bd0
cmp dword [ebp - 0x68], 8
jb 0x4b5c89
push dword [ebp - 0x7c]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x68], 7
cmp dword [ebp - 0x98], 8
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x7c], ax
jb 0x4b5cb4
push dword [ebp - 0xac]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x98], 7
cmp dword [ebp - 0x80], 8
mov dword [ebp - 0x9c], 0
mov word [ebp - 0xac], ax
jb 0x4b5ce5
push dword [ebp - 0x94]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x84], 0
test eax, eax
je 0x4b5d3c
push dword [ebp - 0x16c]
lea ecx, [ebp - 0x165]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.00408200
push dword [ebp - 0x1c]
call fcn.0040823e
add esp, 0x14
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x50], 8
jb 0x4b5d4d
push dword [ebp - 0x64]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
cmp dword [ebp - 0x38], 0x10
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
mov byte [ebp - 4], al
jb 0x4b5d75
push dword [ebp - 0x4c]
call fcn.0040823e
add esp, 4
mov esi, dword [ebp - 0x178]
mov edi, dword [ebp - 0x16c]
lea ecx, [ebp - 0x164]
call fcn.004b7600
push edi
mov ecx, esi
call fcn.00437250
mov esi, eax
mov eax, dword [ebp - 0x178]
cmp esi, dword [eax]
je 0x4b5dc0
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x4b5dae
mov eax, dword [eax]
push ecx
push eax
push dword [edi + 0x10]
mov ecx, edi
push 0
call fcn.00408670
test eax, eax
jns 0x4b5e02
mov ecx, dword [ebp - 0x178]
lea eax, [ebp - 0x165]
push eax
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x16c], edi
push eax
push 0x55bd47
call fcn.004af4e0
mov ecx, dword [ebp - 0x178]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x16c]
push eax
call fcn.004afd70
mov esi, dword [ebp - 0x16c]
mov byte [esi + 0x28], bl
mov eax, dword [ebp - 0x164]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x164]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x168], eax
cmp dword [ebp - 0x104], 0
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x4b5e76
mov eax, dword [ebp - 0x148]
lea ecx, [ebp - 0x110]
cmp dword [eax], ecx
jne 0x4b5e76
mov edx, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x11c]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x138]
mov dword [eax], ecx
mov eax, dword [ebp - 0x128]
mov dword [eax], edx
cmp byte [ebp - 0x108], 0
je 0x4b5e8a
lea ecx, [ebp - 0x154]
call fcn.004b7550
mov esi, dword [ebp - 0x120]
mov dword [ebp - method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
test esi, esi
je 0x4b5ebe
mov ecx, dword [esi]
test ecx, ecx
je 0x4b5eb5
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4b5eb5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
call fcn.0040823e
add esp, 4
mov eax, dword [ebp - 0x164]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
lea eax, [ebp - 0xf4]
mov ecx, dword [ebp - 0x164]
push eax
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0x168], ecx
mov dword [ebp - 0xf4], vtable.std::ios_base.0
call fcn.004dd4ce
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret 4