Function at 0x1005a0b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015906b
mov eax, dword fs:[0]
push eax
sub esp, 0xc64
mov eax, dword [0x101ba0ec]
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.1012bcf0
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x208
push 0
push eax
call fcn.1012bcf0
add esp, 0xc
call fcn.100eb620
test al, al
je 0x1005a14b
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.1012bcf0
add esp, 0xc
lea eax, [ebp - 0xa38]
push 0x208
push 0
push eax
call fcn.1012bcf0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push 0
push eax
call fcn.1012bcf0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.1012bcf0
add esp, 0xc
call fcn.100eb770
test al, al
je 0x1005a1c7
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.1005a810
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 0x1005a200
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.1012aca4
add esp, 8
mov dword [ebp - 0xc60], eax
call fcn.100ebee0
test al, al
je 0x1005a24a
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.100ebaf0
test al, al
je 0x1005a26e
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.100ebaf0
test al, al
je 0x1005a292
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 0x1005a2ea
mov edx, dword [ebp - 0xc5c]
lea ecx, [ebp - 0xc58]
call fcn.1005aac0
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.100419b0
mov ecx, dword [ebp - 0xc44]
cmp ecx, 8
jb 0x1005a64b
inc ecx
push ecx
jmp 0x1005a63a
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 0x1005a2f0
lea ecx, [ebp - 0x830]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1005a311
mov eax, dword [str.Local]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ecx], eax
mov eax, dword [0x10184214]
mov dword [ecx + 4], eax
mov eax, dword [0x10184218]
mov dword [ecx + 8], eax
mov ax, word [0x1018421c]
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.100eb9a0
test al, al
je 0x1005a38b
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.100eb5b0
test al, al
je 0x1005a3b6
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 0x1005a3c0
lea ecx, [ebp - 0x628]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1005a3e1
mov eax, dword [str.LocalLow]
mov dword [ecx], eax
mov eax, dword [0x10184224]
mov dword [ecx + 4], eax
mov eax, dword [0x10184228]
mov dword [ecx + 8], eax
mov eax, dword [0x1018422c]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10184230]
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 0x1005a434
lea ecx, [ebp - 0xa38]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1005a455
mov eax, dword [str.Roaming]
mov dword [ecx], eax
mov eax, dword [0x10184238]
mov dword [ecx + 4], eax
mov eax, dword [0x1018423c]
mov dword [ecx + 8], eax
mov eax, dword [0x10184240]
mov dword [ecx + 0xc], eax
mov ax, word [0x10184244]
mov word [ecx + 0x10], ax
call fcn.100eb460
test al, al
je 0x1005a4aa
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.100eba80
test al, al
je 0x1005a4c9
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 0x1005a594
mov ecx, dword [ebp - 0xc68]
test ecx, ecx
je 0x1005a594
test eax, eax
je 0x1005a594
push dword [ebp - 0xc5c]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push 0x10184248
push eax
call fcn.10041b40
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x1005a542
lea eax, [ebp - 0x218]
push eax
call fcn.10110103
add esp, 4
cmp word [ebp - 0x218], 0
jne 0x1005a566
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.10041f80
jmp 0x1005a606
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005a570
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.10041f80
jmp 0x1005a606
call fcn.100eb540
test al, al
je 0x1005a5ad
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.100ebbd0
test al, al
je 0x1005a5cd
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.100eba80
test al, al
je 0x1005a5f5
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.1005aac0
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.100419b0
mov eax, dword [ebp - 0xc44]
cmp eax, 8
jb 0x1005a64b
inc eax
push eax
push dword [ebp - 0xc58]
lea ecx, [ebp - 0xc58]
call fcn.10042120
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.1010a7f2
mov esp, ebp
pop ebp
ret