Function at 0x1000b780
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004470b
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x1005d0b4]
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.1002e7f0
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.1002e7f0
add esp, 0x18
call fcn.10013270
test al, al
je 0x1000b819
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.10013ac0
test al, al
je 0x1000b83b
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.100134a0
test al, al
je 0x1000b860
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.1002e7f0
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.1002e7f0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1002e7f0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1002e7f0
add esp, 0x30
call fcn.10013350
test al, al
je 0x1000b8ca
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.10013ba0
test al, al
je 0x1000b8f1
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.10013510
test al, al
je 0x1000b90c
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.1000bd80
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 0x1000b942
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.1002e94a
add esp, 8
mov ebx, eax
mov dword [ebp - 0xc60], ebx
call fcn.10013740
test al, al
je 0x1000b9a2
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 0x1000b9f8
push dword [ebp - 0xc5c]
lea eax, [ebp - 0xc58]
push eax
call fcn.1000b440
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.100018a0
mov ecx, dword [ebp - 0xc44]
cmp ecx, 8
jb 0x1000bd5f
inc ecx
push ecx
jmp 0x1000bd4e
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 0x1000ba00
lea ecx, [ebp - 0x830]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1000ba21
mov eax, dword [str.Local]
mov dword [ecx], eax
mov eax, dword [0x10047428]
mov dword [ecx + 4], eax
mov eax, dword [0x1004742c]
mov dword [ecx + 8], eax
mov ax, word [0x10047430]
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.10013970
test al, al
je 0x1000ba92
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.10013820
test al, al
je 0x1000bab1
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.10013890
test al, al
je 0x1000bad9
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 0x1000bae0
lea ecx, [ebp - 0x628]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1000bb01
mov eax, dword [str.LocalLow]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ecx], eax
mov eax, dword [0x10047438]
mov dword [ecx + 4], eax
mov eax, dword [0x1004743c]
mov dword [ecx + 8], eax
mov eax, dword [0x10047440]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10047444]
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 0x1000bb60
lea ecx, [ebp - 0xa38]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1000bb81
mov eax, dword [str.Roaming]
mov dword [ecx], eax
mov eax, dword [0x1004744c]
mov dword [ecx + 4], eax
mov eax, dword [0x10047450]
mov dword [ecx + 8], eax
mov eax, dword [0x10047454]
mov dword [ecx + 0xc], eax
mov ax, word [0x10047458]
mov word [ecx + 0x10], ax
call fcn.10013ac0
test al, al
je 0x1000bbd9
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.10013900
test al, al
je 0x1000bbf7
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 0x1000bcc4
mov ecx, dword [ebp - 0xc68]
test ecx, ecx
je 0x1000bcc4
test eax, eax
je 0x1000bcc4
push dword [ebp - 0xc5c]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push str._s_s_
push eax
call fcn.10002d40
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call ebx
test eax, eax
jne 0x1000bc70
lea eax, [ebp - 0x218]
push eax
call fcn.1000b280
add esp, 4
cmp word [ebp - 0x218], 0
jne 0x1000bc94
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.100027f0
jmp 0x1000bd1a
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000bca0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.100027f0
jmp 0x1000bd1a
call fcn.10013ac0
test al, al
je 0x1000bceb
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.10013430
test al, al
je 0x1000bd05
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.1000b440
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.100018a0
mov eax, dword [ebp - 0xc44]
cmp eax, 8
jb 0x1000bd5f
inc eax
push eax
push dword [ebp - 0xc58]
lea ecx, [ebp - 0xc58]
call fcn.10002940
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.100157fc
mov esp, ebp
pop ebp
ret