Function at 0x10005690
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100407fb
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x10058074]
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 eax, dword [ebp + 8]
mov dword [ebp - 0xc64], eax
mov eax, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0xc5c], eax
lea eax, [ebp - 0xc40]
push 0
push eax
mov dword [ebp - 0xc6c], 0
call fcn.1002ad90
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.1002ad90
add esp, 0x18
call fcn.1000fff0
test al, al
je 0x10005729
pop esp
pop ebx
push edx
pop ebx
pop ecx
push edx
push eax
push ebx
pop eax
pop edi
pop edi
push esi
push esp
push edx
push ecx
pop ecx
push ebx
pop edi
pop ebx
push esp
pop ebp
pop esi
pop eax
pop esp
push eax
pop eax
push edx
pop eax
push ebp
call fcn.10010840
test al, al
je 0x1000574b
pop eax
pop ecx
push eax
pop ebp
push edx
push ebp
pop eax
pop esp
pop ebp
push edi
pop ebx
pop ebx
pop edi
push ecx
push ebp
push esp
push eax
push esp
pop eax
pop edi
pop ebx
pop edi
push esi
push edx
pop esi
call fcn.10010220
test al, al
je 0x10005770
pop eax
pop ecx
pop ebp
pop ecx
pop ecx
push ebx
pop eax
pop edx
pop edx
push esi
pop eax
pop esi
pop ebx
pop esp
pop eax
push ebx
pop ebp
push esi
pop ebp
push edi
push edx
pop edi
pop ecx
push ebp
push esp
push esi
pop edi
push ebp
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.1002ad90
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.1002ad90
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1002ad90
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1002ad90
add esp, 0x30
call fcn.100100d0
test al, al
je 0x100057da
pop edi
pop esi
push ebp
push esi
pop edi
push eax
pop eax
push esi
pop edx
pop edi
push ecx
pop eax
push edx
pop ecx
push ebp
pop ecx
push ebx
pop edx
call fcn.10010920
test al, al
je 0x10005801
pop esp
push eax
pop esi
pop esi
push eax
push eax
push edi
push ecx
pop ebx
push eax
push edi
push ebp
pop esp
push eax
push esi
push ebp
push ecx
pop esi
push eax
pop edx
pop edi
push ecx
pop eax
push esp
push esi
pop edx
pop esp
pop ebx
push eax
push esi
call fcn.10010290
test al, al
je 0x1000581c
push eax
pop edi
pop ecx
push ebp
pop edi
pop ecx
push ecx
push ecx
push edi
pop ebp
pop ebx
pop ecx
push eax
push edi
push ebx
push edi
push ebx
push esp
xor eax, eax
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], 0
mov word [ebp - 0xc58], ax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc40]
push 0x1a
push eax
push 0
call fcn.10005c90
add esp, 0x10
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xc40]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x422], ax
test ax, ax
jne 0x10005852
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.1002a324
add esp, 8
mov ebx, eax
mov dword [ebp - 0xc60], ebx
call fcn.100104c0
test al, al
je 0x100058b2
pop esp
push edi
pop esi
pop esp
pop edx
push ebp
push ebp
pop edx
pop edx
pop ebp
pop edi
push edi
pop edx
pop eax
pop ecx
push esp
push ebp
push ebp
push ebp
push edx
pop esi
pop edi
push eax
pop ebp
pop edi
pop ebx
push ebx
pop edx
push eax
pop esi
pop edx
pop esi
mov ebx, dword [ebp - 0xc60]
test ebx, ebx
jne 0x10005908
push dword [ebp - 0xc5c]
lea eax, [ebp - 0xc58]
push eax
call fcn.10005350
mov ebx, dword [ebp - 0xc64]
xor eax, eax
add esp, 8
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.10004020
mov ecx, dword [ebp - 0xc44]
cmp ecx, 8
jb 0x10005c6f
inc ecx
push ecx
jmp 0x10005c5e
xor eax, eax
xor ecx, ecx
mov word [ebx], ax
nop
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x832], ax
test ax, ax
jne 0x10005910
lea ecx, [ebp - 0x830]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10005931
mov eax, dword [str.Local]
mov dword [ecx], eax
mov eax, dword [0x1004515c]
mov dword [ecx + 4], eax
mov eax, dword [0x10045160]
mov dword [ecx + 8], eax
mov ax, word [0x10045164]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
mov dword [ebp - 0xc60], eax
call fcn.100106f0
test al, al
je 0x100059a2
pop esi
pop eax
push esp
pop edx
pop esi
push edx
pop ebp
push eax
push esp
pop ebx
push edi
pop edx
push ebp
pop eax
push edi
push esp
push edi
pop esp
pop edi
pop esi
push esp
pop edi
pop esi
pop ebp
push ebx
call fcn.100105a0
test al, al
je 0x100059c1
pop ebx
pop eax
push ebp
pop esi
push ebx
pop eax
push edx
push ecx
pop edx
push esi
pop edx
pop eax
push eax
push esp
pop ecx
pop esp
pop edi
pop ecx
push ecx
pop ebx
pop esp
push esp
call fcn.10010610
test al, al
je 0x100059e9
push ecx
push ebx
push ebx
pop edi
pop edx
pop ecx
pop edi
push ecx
pop esp
push esi
pop edx
push ecx
push edx
pop eax
push edx
pop esi
pop esi
push ebx
push edi
push edi
pop edx
pop edi
push ecx
pop ebx
push esp
pop edx
pop esi
pop eax
push edx
pop ebx
push edx
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 0x100059f0
lea ecx, [ebp - 0x628]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10005a11
mov eax, dword [str.LocalLow]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ecx], eax
mov eax, dword [0x1004516c]
mov dword [ecx + 4], eax
mov eax, dword [0x10045170]
mov dword [ecx + 8], eax
mov eax, dword [0x10045174]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10045178]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x628]
push eax
call ebx
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
xor ecx, ecx
mov dword [ebp - 0xc68], eax
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xa3a], ax
test ax, ax
jne 0x10005a70
lea ecx, [ebp - 0xa38]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10005a91
mov eax, dword [str.Roaming]
mov dword [ecx], eax
mov eax, dword [0x10045180]
mov dword [ecx + 4], eax
mov eax, dword [0x10045184]
mov dword [ecx + 8], eax
mov eax, dword [0x10045188]
mov dword [ecx + 0xc], eax
mov ax, word [0x1004518c]
mov word [ecx + 0x10], ax
call fcn.10010840
test al, al
je 0x10005ae9
push eax
push ebp
push ebp
push edi
push esp
push esp
push edx
push esp
pop eax
pop esi
push esp
push edi
pop eax
push esi
pop ebp
pop edi
push ebp
push ecx
push eax
push esp
push esi
push ebx
push ebx
push edx
push ecx
pop ebp
call fcn.10010680
test al, al
je 0x10005b07
push esi
pop edi
push eax
push ecx
push esi
push esi
pop ecx
push esi
pop ecx
push eax
push edx
push eax
pop ebp
pop esi
push eax
pop ecx
pop esp
pop edi
push eax
pop edx
pop edx
lea eax, [ebp - 0xa38]
push eax
call ebx
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
mov ecx, dword [ebp - 0xc60]
test ecx, ecx
je 0x10005bd4
mov ecx, dword [ebp - 0xc68]
test ecx, ecx
je 0x10005bd4
test eax, eax
je 0x10005bd4
push dword [ebp - 0xc5c]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push str._s_s_
push eax
call fcn.10004cb0
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x10005b80
lea eax, [ebp - 0x218]
push eax
call fcn.10005190
add esp, 4
cmp word [ebp - 0x218], 0
jne 0x10005ba4
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.10004960
jmp 0x10005c2a
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005bb0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.10004960
jmp 0x10005c2a
call fcn.10010840
test al, al
je 0x10005bfb
push edx
push edi
pop edi
pop ebp
push ebp
pop ebx
pop esp
pop ebx
push eax
pop ebp
push ebx
push esi
pop edi
pop eax
push esi
push esp
push eax
pop ebx
push ecx
push esi
pop edx
pop esi
pop esp
pop edx
push eax
push eax
push esi
pop eax
push ecx
pop ebx
call fcn.100101b0
test al, al
je 0x10005c15
push edi
pop edi
push esi
push esp
pop ecx
push edx
push ebx
pop ebx
push ebp
push edx
pop edi
push esi
pop ebp
pop edx
push esp
push eax
push esi
push dword [ebp - 0xc5c]
lea eax, [ebp - 0xc58]
push eax
call fcn.10005350
add esp, 8
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.10004020
mov eax, dword [ebp - 0xc44]
cmp eax, 8
jb 0x10005c6f
inc eax
push eax
push dword [ebp - 0xc58]
lea ecx, [ebp - 0xc58]
call fcn.10004ab0
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.1001212b
mov esp, ebp
pop ebp
ret