Function at 0x1002ff10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c57c1
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1010739c]
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 0x1002ff88
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002ffb4
cmp esi, edi
je 0x100301fe
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x1002ffa6
mov edi, dword [edi]
push eax
push edi
mov ecx, esi
call fcn.10009130
jmp 0x100301fe
cmp dword [ebx + 0x14], 8
jb 0x1002ffbc
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0x30]
call fcn.1000aac0
mov dword [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x1002ffd4
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x2c]
call fcn.1000aac0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x14], 8
jb 0x1002ffec
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1000aac0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x14], 8
jb 0x10030004
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x38]
call fcn.1000aac0
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.1006e710
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 0x10030060
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10009130
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 0x1003009a
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 0x100300b8
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 0x100300d6
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 0x100300f4
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 0x10030112
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
jne 0x1003013a
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x100301f2
cmp dword [ebp - 0x14], 8
mov ecx, esi
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10009130
jmp 0x100301f2
push 0x100d7798
lea ecx, [ebp - 0x2c]
call fcn.1000aac0
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.1000aac0
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.100530d0
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 0x10030182
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.10009130
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 0x100301b8
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 0x100301d6
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 0x100301f2
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.100055d0
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.100512b9
mov esp, ebp
pop ebp
ret