Function at 0x1005b8c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e0341
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1010e07c]
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, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, ecx
lea esi, [edi + 0xfc]
mov dword [ebp - 0x30], 0
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], eax
je 0x1005b94d
cmp dword [esi + 0x14], 8
jb 0x1005b919
mov eax, dword [esi]
jmp 0x1005b91b
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x1005b94d
xor edi, edi
push 0xffffffffffffffff
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
push edi
mov word [ebx], cx
push esi
mov ecx, ebx
call fcn.10005f30
jmp 0x1005bb08
call fcn.10069aa0
test eax, eax
je 0x1005b991
lea edx, [ebp - 0x2c]
push edx
mov ecx, edi
call fcn.1005b1d0
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.100070c0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x1005b986
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100b2678
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
jmp 0x1005bade
lea edi, [ebp - 0x2c]
call fcn.1005b6d0
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.100070c0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x1005b9be
mov edx, dword [ebp - 0x2c]
push edx
call fcn.100b2678
add esp, 4
mov edi, dword [ebp - 0x38]
xor eax, eax
xor ecx, ecx
mov word [ebp - 0x2c], ax
mov eax, dword [edi + 0x10]
mov edx, 7
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
cmp eax, ecx
jne 0x1005b9fd
push 0xffffffffffffffff
mov dword [ebx + 0x14], edx
push ecx
mov dword [ebx + 0x10], ecx
xor edx, edx
push esi
mov ecx, ebx
mov word [ebx], dx
call fcn.10005f30
mov dword [ebp - 4], 0
jmp 0x1005bb0b
ja 0x1005ba09
push str.invalid_string_position
call fcn.100b1c44
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x1005ba15
mov eax, dword [edi]
jmp 0x1005ba17
mov eax, edi
mov edx, 0x5c
cmp dx, word [eax]
je 0x1005ba46
cmp ecx, 8
jb 0x1005ba2a
mov eax, dword [edi]
jmp 0x1005ba2c
mov eax, edi
mov ecx, 0x2f
cmp cx, word [eax]
je 0x1005ba46
push 0x100ead34
mov ecx, esi
call fcn.1000b850
mov ecx, eax
jmp 0x1005ba48
mov ecx, esi
push 0xffffffffffffffff
push 0
push edi
call fcn.1000df50
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.10005f30
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x10c]
dec eax
cmp dword [esi + 0x10], eax
ja 0x1005ba77
push str.invalid_string_position
call fcn.100b1c44
cmp dword [esi + 0x14], 8
jb 0x1005ba81
mov ecx, dword [esi]
jmp 0x1005ba83
mov ecx, esi
mov edx, 0x5c
cmp dx, word [ecx + eax*2]
je 0x1005baa5
cmp dword [esi + 0x14], 8
jb 0x1005ba98
mov ecx, dword [esi]
jmp 0x1005ba9a
mov ecx, esi
mov edx, 0x2f
cmp dx, word [ecx + eax*2]
jne 0x1005baec
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.1005c010
mov dword [ebp - 4], 3
push eax
mov ecx, esi
call fcn.100070c0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x1005bad8
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100b2678
add esp, 4
xor edx, edx
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
xor edi, edi
push 0xffffffffffffffff
push edi
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
push esi
mov ecx, ebx
mov word [ebx], ax
call fcn.10005f30
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], 1
mov eax, ebx
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.100b2b2c
mov esp, ebp
pop ebp
ret 8