Function at 0x1002fbf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bea91
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100fe39c]
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 - 4], 0
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov eax, ebx
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x40], 1
jb 0x1002fc68
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002fc94
cmp esi, edi
je 0x1002fede
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x1002fc86
mov edi, dword [edi]
push eax
push edi
mov ecx, esi
call fcn.10008f70
jmp 0x1002fede
cmp dword [ebx + 0x14], 8
jb 0x1002fc9c
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0x30]
call fcn.1000a900
mov dword [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x1002fcb4
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x2c]
call fcn.1000a900
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x14], 8
jb 0x1002fccc
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1000a900
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x14], 8
jb 0x1002fce4
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x38]
call fcn.1000a900
mov byte [ebp - 4], 4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10066b50
add esp, 0x14
mov byte [ebp - 4], 5
mov edx, dword [eax]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edi, [ecx + 2]
mov word [ebp - 0x28], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002fd40
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10008f70
mov byte [ebp - 4], 7
or edi, 0xffffffff
mov edx, dword [ebp - 0x34]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002fd7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002fd98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, edi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002fdb6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov eax, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002fdd4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov eax, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002fdf2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
jne 0x1002fe1a
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x1002fed2
cmp dword [ebp - 0x14], 8
mov ecx, esi
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10008f70
jmp 0x1002fed2
push 0x100cf5f0
lea ecx, [ebp - 0x2c]
call fcn.1000a900
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x30]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1000a900
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10051340
add esp, 0xc
mov byte [ebp - 4], 0x13
mov edx, dword [eax]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002fe62
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.10008f70
mov byte [ebp - 4], 0x12
mov eax, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002fe98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov eax, edi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002feb6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1002fed2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10005430
mov eax, esi
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.1004f51c
mov esp, ebp
pop ebp
ret