Function at 0x4bf320
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b466
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x61308c]
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 ebx, ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004bf110
mov esi, eax
test esi, esi
je 0x4bf599
cmp dword [esi], 0xffffffff
je 0x4bf599
cmp byte [esi + 4], 0
jne 0x4bf3c3
lea edx, [esi + 0x606]
test edx, edx
je 0x4bf3bc
lea ecx, [ebp - 0x428]
call fcn.0040e950
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x4bf396
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.00404780
test bl, bl
je 0x4bf599
mov al, 1
jmp 0x4bf59b
lea edi, [esi + 6]
push 0x5c1404
push edi
call fcn.00533aae
add esp, 8
test eax, eax
je 0x4bf42f
push 0x5c1428
push edi
call fcn.00533aae
add esp, 8
test eax, eax
je 0x4bf42f
mov ecx, 0x5c1458
lea eax, [esi + 0x2210]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4bf41b
test dx, dx
je 0x4bf417
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4bf41b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4bf3f5
xor eax, eax
jmp 0x4bf420
sbb eax, eax
or eax, 1
mov ecx, ebx
test eax, eax
jne 0x4bf431
lea eax, [esi + 0x606]
push eax
jmp 0x4bf433
mov ecx, ebx
push 0
push esi
lea eax, [ebp - 0x410]
push eax
call fcn.004c2880
test al, al
je 0x4bf4c7
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bf451
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jle 0x4bf490
movzx eax, word [ebp + ecx*2 - 0x412]
cmp eax, 0x5c
je 0x4bf490
cmp eax, 0x2f
je 0x4bf490
push 0x5c1460
lea eax, [ebp - 0x410]
push 0x200
push eax
call fcn.0053521e
add esp, 0xc
lea eax, [esi + 0x606]
push eax
lea eax, [ebp - 0x410]
push 0x200
push eax
call fcn.0053521e
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bf599
mov al, 1
jmp 0x4bf59b
cmp edi, 0x5c1464
jne 0x4bf599
mov edx, 0x5c148c
lea ecx, [ebp - 0x428]
call fcn.00411e40
mov dword [ebp - 4], 7
lea edi, [ebp - 0x428]
cmp dword [ebp - 0x414], 8
cmovae edi, dword [ebp - 0x428]
test edi, edi
jne 0x4bf506
xor eax, eax
jmp 0x4bf543
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bf510
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x4bf52e
xor eax, eax
jmp 0x4bf543
add esi, esi
mov eax, esi
call fcn.00512c50
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.004c3950
push 0
push eax
call fcn.0053c048
add esp, 8
test eax, eax
jne 0x4bf587
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bf587
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.00409540
mov al, 1
jmp 0x4bf59b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x428]
call fcn.00409540
xor al, al
lea esp, [ebp - 0x438]
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.005120a1
mov esp, ebp
pop ebp
ret 4