Function at 0x5e13a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x81de62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x40], esi
lea ebp, [esi + 4]
mov ecx, ebp
call fcn.005560e0
xor eax, eax
mov dword [esi + 0x18], eax
mov ebx, dword [esp + 0x148]
mov dword [esi + 0x3b0], 0xffffffff
mov dword [esi], 0x86a214
mov dword [esp + 0x13c], eax
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push ecx
push eax
push eax
call fcn.005e21b0
add esp, 0xc
mov edi, eax
mov eax, dword [ebx + 8]
mov ecx, ebx
push eax
push edi
call fcn.0050c1e0
mov ecx, dword [esp + 0x144]
lea eax, [esi + 0x160]
mov dword [ebx + 8], edi
mov byte [esi + 0x1c], 1
push eax
mov eax, dword [ecx]
call dword [eax + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x3b0], eax
jne 0x5e14c7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x5e167e
call edi
test ebp, ebp
mov dword [esi + 0x18], eax
je 0x5e1460
lea edi, [ebp + 4]
jmp 0x5e1462
xor edi, edi
push str.FindFirstFileW__
call fcn.007ac4d2
add esp, 4
mov ecx, edi
push eax
push str.FindFirstFileW__
call fcn.00403980
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x5e167e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
call fcn.005e1a70
lea ecx, [esp + 0xd8]
call fcn.005e1280
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x140], 2
call fcn.005e1c00
lea eax, [esp + 0x44]
push 0x8c2528
push eax
call fcn.007ac5c6
lea ecx, [esp + 0x6c]
call fcn.005560e0
mov al, byte [esi + 0x1c]
xor edi, edi
test al, al
mov byte [esp + 0x13c], 3
je 0x5e156b
mov ecx, dword [esi + 0x160]
mov eax, dword [esi + 0x168]
mov edx, dword [esi + 0x164]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x16c]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x170]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x178]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x17c]
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 0x180]
xor edx, edx
or eax, edi
mov word [esi + 0x392], di
lea edi, [esi + 0x18c]
or edx, ecx
push edi
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
call fcn.007ac4d2
add esp, 4
lea ecx, [esp + 0x70]
push eax
push edi
call fcn.00403980
jmp 0x5e164a
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x30]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x40]
xor eax, eax
or ecx, edi
or eax, edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], eax
mov byte [esi + 0x14f], 0
lea ebp, [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetACP]
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.004034c0
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], edi
mov byte [esp + 0x34], al
call fcn.00404c40
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 5
mov dword [esp + 0x18], vtable.dbcsstring.0
call fcn.00577bc0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x24]
call fcn.004030a0
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x144], 6
call fcn.00579c60
add esp, 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x13c], 3
push 1
call fcn.00404c40
push 1
lea ecx, [esp + 0x20]
call fcn.00404c40
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x44]
push ecx
push eax
mov ecx, ebx
call fcn.005e1d40
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x140], 0
call fcn.00404f20
push 1
mov ecx, esi
call fcn.005e1710
test al, al
jne 0x5e14c7
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x130
ret 8