Function at 0x10059ff0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015870b
mov eax, dword fs:[0]
push eax
sub esp, 0xc64
mov eax, dword [0x101b90ec]
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 dword [ebp - 0xc5c], edx
mov dword [ebp - 0xc64], ecx
mov dword [ebp - 0xc68], ecx
push 0x208
lea eax, [ebp - 0xc40]
mov dword [ebp - 0xc6c], 0
push 0
push eax
call fcn.1012b3b0
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x208
push 0
push eax
call fcn.1012b3b0
add esp, 0xc
call fcn.100ead10
test al, al
je 0x1005a08b
push esi
pop edx
push edx
push esp
pop edi
push esi
push ebx
pop ebx
pop esi
push ebp
push esp
push eax
push ebx
pop edi
pop edx
push ebx
pop esp
pop ebx
push ecx
pop edx
pop esp
pop edx
pop esp
pop ebx
pop esi
push esi
push esp
push esp
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.1012b3b0
add esp, 0xc
lea eax, [ebp - 0xa38]
push 0x208
push 0
push eax
call fcn.1012b3b0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
call fcn.1012b3b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.1012b3b0
add esp, 0xc
call fcn.100eae60
test al, al
je 0x1005a107
pop edx
push ecx
pop edi
push esi
pop ebp
push ebp
push esp
pop ebp
push ebx
push ecx
push ecx
pop esi
push ebp
push ebp
pop esp
push eax
pop edi
push esp
push ebx
push ebp
push eax
pop ecx
pop ebx
pop edi
pop esp
pop esi
pop ebx
xor eax, eax
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], 0
mov word [ebp - 0xc58], ax
sub esp, 8
mov dword [ebp - 4], eax
lea edx, [ebp - 0xc40]
call fcn.1005a750
add esp, 8
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0xc40]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x422], ax
test ax, ax
jne 0x1005a140
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.1012a364
add esp, 8
mov dword [ebp - 0xc60], eax
call fcn.100eb5d0
test al, al
je 0x1005a18a
pop ecx
push ecx
push esi
push edx
push eax
pop esi
push eax
push ebx
pop ebx
push esi
push eax
push eax
push edi
push ebp
pop esi
push esp
pop eax
push esp
call fcn.100eb1e0
test al, al
je 0x1005a1ae
push edx
push esi
push esi
push edi
push esi
push edi
pop edi
push esi
push ecx
push esp
push esp
push edx
push ecx
pop esp
push esp
push ebx
pop edi
pop edx
pop ebp
pop ebx
pop esi
push esp
pop ebx
pop edx
pop eax
pop esi
push ebx
call fcn.100eb1e0
test al, al
je 0x1005a1d2
push ebx
pop ebp
pop edi
push esi
pop esp
pop ecx
pop ebx
pop edi
pop eax
pop edi
pop edi
push edx
pop eax
pop ecx
push eax
push edi
push ecx
pop edi
pop esi
push ebp
push esp
push esi
push edx
push edi
push esi
push edx
push ebp
mov eax, dword [ebp - 0xc60]
test eax, eax
jne 0x1005a22a
mov edx, dword [ebp - 0xc5c]
lea ecx, [ebp - 0xc58]
call fcn.1005aa00
mov ebx, dword [ebp - 0xc64]
xor eax, eax
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0xc58]
push eax
call fcn.100419a0
mov ecx, dword [ebp - 0xc44]
cmp ecx, 8
jb 0x1005a58b
inc ecx
push ecx
jmp 0x1005a57a
xor ecx, ecx
mov word [eax], cx
nop
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x832], ax
test ax, ax
jne 0x1005a230
lea ecx, [ebp - 0x830]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1005a251
mov eax, dword [str.Local]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ecx], eax
mov eax, dword [0x10183214]
mov dword [ecx + 4], eax
mov eax, dword [0x10183218]
mov dword [ecx + 8], eax
mov ax, word [0x1018321c]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x830]
push eax
call edi
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
mov dword [ebp - 0xc60], eax
call fcn.100eb090
test al, al
je 0x1005a2cb
push edx
push esp
pop esp
push edx
push eax
push eax
push ebx
push edi
push ecx
push ecx
pop esp
pop edx
pop ebx
push ebx
pop ecx
pop eax
pop eax
pop eax
push ebx
pop ebx
pop esi
push esi
push edx
pop ebp
push esi
pop ebx
pop ebx
pop esp
pop edx
pop edx
pop eax
push ebp
call fcn.100eaca0
test al, al
je 0x1005a2f6
pop esi
push esp
pop ebx
push edx
push eax
pop edi
pop ecx
push ecx
push esi
push ecx
pop ebp
push esi
push ebx
push ecx
push ecx
pop esi
pop esp
pop edi
pop edx
push edi
push edx
pop esp
pop eax
push edx
pop esi
pop ecx
push ebp
pop ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x62a], ax
test ax, ax
jne 0x1005a300
lea ecx, [ebp - 0x628]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1005a321
mov eax, dword [str.LocalLow]
mov dword [ecx], eax
mov eax, dword [0x10183224]
mov dword [ecx + 4], eax
mov eax, dword [0x10183228]
mov dword [ecx + 8], eax
mov eax, dword [0x1018322c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10183230]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x628]
push eax
call edi
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0xc68], eax
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xa3a], ax
test ax, ax
jne 0x1005a374
lea ecx, [ebp - 0xa38]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1005a395
mov eax, dword [str.Roaming]
mov dword [ecx], eax
mov eax, dword [0x10183238]
mov dword [ecx + 4], eax
mov eax, dword [0x1018323c]
mov dword [ecx + 8], eax
mov eax, dword [0x10183240]
mov dword [ecx + 0xc], eax
mov ax, word [0x10183244]
mov word [ecx + 0x10], ax
call fcn.100eab50
test al, al
je 0x1005a3ea
push esi
push esp
push edx
push edi
push ecx
push edx
push edx
pop esp
push ebp
push esp
pop ebp
pop edi
pop ebx
pop esi
pop edx
push edi
push esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call fcn.100eb170
test al, al
je 0x1005a409
pop edx
push ecx
pop ebp
pop edx
pop ecx
push edi
pop ecx
push ebx
pop esi
push edx
pop eax
push eax
pop eax
pop esp
push ebp
push edx
pop ebx
push esp
push edi
push eax
push edi
push esp
lea eax, [ebp - 0xa38]
push eax
call edi
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
mov ecx, dword [ebp - 0xc60]
test ecx, ecx
je 0x1005a4d4
mov ecx, dword [ebp - 0xc68]
test ecx, ecx
je 0x1005a4d4
test eax, eax
je 0x1005a4d4
push dword [ebp - 0xc5c]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push 0x10183248
push eax
call fcn.10041b30
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x1005a482
lea eax, [ebp - 0x218]
push eax
call fcn.1010f7c1
add esp, 4
cmp word [ebp - 0x218], 0
jne 0x1005a4a6
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.10041f70
jmp 0x1005a546
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005a4b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.10041f70
jmp 0x1005a546
call fcn.100eac30
test al, al
je 0x1005a4ed
push esi
pop edx
push ecx
push ecx
pop ebx
push ebp
pop esp
push ebx
push ecx
pop ecx
push edx
pop eax
pop esp
push esi
push eax
push ebx
call fcn.100eb2c0
test al, al
je 0x1005a50d
push ebx
pop esp
push edx
pop esi
push esi
pop ebx
pop eax
push eax
push edi
push esi
push ebp
push ebp
pop ebp
push edx
push eax
pop esp
push edx
push ebp
pop esp
pop ecx
push ebx
push edi
pop ebx
call fcn.100eb170
test al, al
je 0x1005a535
push esp
push edx
pop esi
pop edx
push ecx
push ecx
push esi
pop ecx
pop edi
pop edi
pop ebp
push edx
pop esp
pop ecx
push ebp
push ebx
push edi
pop esi
push eax
push ecx
pop ebp
pop eax
pop esp
push edi
push esp
push ebx
pop edi
push eax
push ecx
push ebp
pop ebx
mov edx, dword [ebp - 0xc5c]
lea ecx, [ebp - 0xc58]
call fcn.1005aa00
mov ebx, dword [ebp - 0xc64]
xor eax, eax
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0xc58]
push eax
call fcn.100419a0
mov eax, dword [ebp - 0xc44]
cmp eax, 8
jb 0x1005a58b
inc eax
push eax
push dword [ebp - 0xc58]
lea ecx, [ebp - 0xc58]
call fcn.10042110
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.10109ec2
mov esp, ebp
pop ebp
ret