Function at 0x10018b50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c38b
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x10080440]
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 - 0xc60], 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.10044800
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.10044800
add esp, 0x18
call fcn.1002a6c0
test al, al
je 0x10018beb
pop esi
pop esi
pop eax
push edi
pop ebx
push edx
pop ebx
push edi
push edx
push ebp
pop esp
push esi
pop edx
push eax
pop ecx
pop eax
pop ebx
push edx
push ebp
pop edi
pop esi
push eax
push edi
pop esi
push esi
pop ebp
pop eax
push eax
push ebp
pop ebp
push ebp
call fcn.1002adc0
test al, al
je 0x10018c06
push edi
push esp
push esi
push esp
pop ecx
pop ecx
push esi
push ebp
push ebp
pop edi
pop edx
pop esp
push esp
push edi
pop esi
pop esi
pop esp
pop ebp
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.10044800
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.10044800
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10044800
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10044800
add esp, 0x30
call fcn.1002a570
test al, al
je 0x10018c78
pop edx
pop edx
push esi
pop esp
pop edi
pop eax
pop ebx
push eax
pop edx
push eax
push eax
push eax
pop ebp
push esi
push edi
push esp
push ecx
push ebx
pop edx
push ebx
push esp
push edx
push ebx
pop edi
push esp
push ebx
call fcn.1002a960
test al, al
je 0x10018c9a
pop edi
pop esi
push ecx
pop ecx
pop edi
push ebx
pop ebx
push esp
pop esi
pop ebx
pop edx
push esp
pop ebx
pop edx
pop ebp
pop esp
pop edx
push esi
push esi
push ecx
pop ebx
push eax
pop edi
push edx
push edx
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.100190c0
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 0x10018cd0
lea eax, [ebp - 0x420]
push 0x5c
push eax
call fcn.10045e32
add esp, 8
mov esi, eax
call fcn.1002a500
test al, al
je 0x10018d19
push ecx
push ecx
push esi
pop ebp
pop ebx
push esp
push ebx
push ecx
pop eax
pop ebp
pop ebp
pop ecx
pop edx
pop edi
push edi
push esi
push esp
push ebp
push eax
pop eax
pop edx
test esi, esi
jne 0x10018d6b
push dword [ebp - 0xc5c]
lea eax, [ebp - 0xc58]
push eax
call fcn.100178a0
mov ebx, dword [ebp - 0xc60]
xor eax, eax
add esp, 8
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
mov word [ebx], ax
lea eax, [ebp - 0xc58]
push eax
call fcn.1000f2b0
mov ecx, dword [ebp - 0xc44]
cmp ecx, 8
jb 0x1001909e
inc ecx
push ecx
jmp 0x1001908d
xor eax, eax
xor ecx, ecx
mov word [esi], ax
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x832], ax
test ax, ax
jne 0x10018d72
lea ecx, [ebp - 0x830]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10018d93
mov eax, dword [0x10062444]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ecx], eax
mov eax, dword [0x10062448]
mov dword [ecx + 4], eax
mov eax, dword [0x1006244c]
mov dword [ecx + 8], eax
mov ax, word [0x10062450]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x830]
push eax
call edi
test eax, eax
mov ebx, 1
mov eax, 0
cmovne eax, ebx
mov dword [ebp - 0xc68], eax
call fcn.1002ace0
test al, al
je 0x10018e04
push ecx
pop edx
pop ecx
pop esi
push ebx
pop ebp
pop eax
push eax
pop esi
pop esi
push ecx
pop ebx
push ebx
push esp
push esp
pop ebp
push eax
push ebx
mov ebx, 1
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x62a], ax
test ax, ax
jne 0x10018e10
lea ecx, [ebp - 0x628]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10018e31
mov eax, dword [0x10062454]
mov dword [ecx], eax
mov eax, dword [0x10062458]
mov dword [ecx + 4], eax
mov eax, dword [0x1006245c]
mov dword [ecx + 8], eax
mov eax, dword [0x10062460]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10062464]
mov dword [ecx + 0x10], eax
lea eax, [ebp - 0x628]
push eax
call edi
test eax, eax
mov esi, 0
cmovne esi, ebx
xor ecx, ecx
mov dword [ebp - 0xc64], esi
nop
movzx eax, word [ebp + ecx - 0x420]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xa3a], ax
test ax, ax
jne 0x10018e80
lea ecx, [ebp - 0xa38]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10018ea1
mov eax, dword [0x10062468]
mov dword [ecx], eax
mov eax, dword [0x1006246c]
mov dword [ecx + 4], eax
mov eax, dword [0x10062470]
mov dword [ecx + 8], eax
mov eax, dword [0x10062474]
mov dword [ecx + 0xc], eax
mov ax, word [0x10062478]
mov word [ecx + 0x10], ax
call fcn.1002ae30
test al, al
je 0x10018ef6
push edx
pop ebp
pop edi
push edx
push ebx
push edi
pop ebx
push edi
push edx
push esp
pop esp
push edx
push edx
pop ebx
push ecx
pop edx
push eax
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call fcn.1002a880
test al, al
je 0x10018f22
pop esp
push esi
pop eax
pop ebx
pop edx
pop esi
pop edx
push ebp
pop esp
push edx
pop ebp
push esi
push edi
pop ebx
push esp
push ebp
push ecx
push eax
push ecx
pop esp
pop esp
push esp
push esp
push esp
push ebp
push ebx
push ecx
push esp
push edx
mov esi, dword [ebp - 0xc64]
lea eax, [ebp - 0xa38]
push eax
call edi
test eax, eax
mov ecx, 1
mov eax, 0
cmovne eax, ecx
mov ecx, dword [ebp - 0xc68]
test ecx, ecx
je 0x10018fe6
test esi, esi
je 0x10018fe6
test eax, eax
je 0x10018fe6
push dword [ebp - 0xc5c]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push str._s_s_
push eax
call fcn.1000db00
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
jne 0x10018f95
lea eax, [ebp - 0x218]
push eax
call fcn.10017730
add esp, 4
cmp word [ebp - 0x218], 0
jne 0x10018fb9
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.10008730
jmp 0x10019059
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10018fc2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc58]
call fcn.10008730
jmp 0x10019059
call fcn.1002a9d0
test al, al
je 0x10019007
push ecx
push ebp
pop esp
pop ebx
push ebx
push esi
pop eax
pop edi
pop edi
pop eax
pop esp
pop ecx
pop ebp
pop esi
push edi
push ebp
push eax
pop ecx
pop ebp
pop eax
push edi
pop ecx
push ecx
pop ecx
call fcn.1002a570
test al, al
je 0x10019029
push esp
push ebx
push ecx
push esp
push edi
push ebx
push ecx
pop eax
pop edx
push ebp
pop edi
push ecx
push ecx
push esp
pop ebx
pop esi
push eax
pop edx
push esi
push esp
pop ebp
pop eax
pop ebp
pop esi
push edx
call fcn.1002a2d0
test al, al
je 0x10019044
pop edx
push esi
pop edi
push esp
pop esi
pop esi
pop esi
pop ebx
push ecx
pop ebx
push esi
push esi
push ebp
push ebp
push edi
pop ebx
pop edx
pop eax
push dword [ebp - 0xc5c]
lea eax, [ebp - 0xc58]
push eax
call fcn.100178a0
add esp, 8
mov ebx, dword [ebp - 0xc60]
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.1000f2b0
mov eax, dword [ebp - 0xc44]
cmp eax, 8
jb 0x1001909e
inc eax
push eax
push dword [ebp - 0xc58]
lea ecx, [ebp - 0xc58]
call fcn.10008830
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.1002c484
mov esp, ebp
pop ebp
ret