Function at 0x1002f9e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e3910
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1025e344]
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 esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 0
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x1002fbaa
push edi
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], edi
push 0x10200ce4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10014280
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.100be360
add esp, 8
cmp dword [ebp - 0x18], edi
jne 0x1002fa78
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10007910
jmp 0x1002fbaa
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100c0b70
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x1002faa3
mov byte [ebp - 4], al
lea ecx, [ebp - 0x28]
call fcn.10007910
jmp 0x1002fbaa
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x2c], ecx
test eax, eax
jne 0x1002faca
mov byte [ebp - 4], al
lea ecx, [ebp - 0x28]
call fcn.10007910
jmp 0x1002fbaa
cmp ecx, edx
je 0x1002fb5f
mov eax, dword [ecx]
sub eax, 0x10
push eax
call fcn.100041a0
mov ebx, eax
lea esi, [ebx + 0x10]
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 3
mov edi, esp
mov dword [ebp - 0x44], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x40], esp
push eax
call fcn.100041a0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 5
mov edi, esp
mov dword [ebp - 0x48], esp
push ebx
mov dword [ebp - 0x4c], edi
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x30]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
call fcn.1002fbf0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002fb4d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
add ecx, 4
mov dword [ebp - 0x2c], ecx
cmp ecx, dword [ebp - 0x38]
jne 0x1002fad2
mov edi, 1
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1002fb98
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002fb8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002fbe9
push edx
push ecx
call fcn.100cff81
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1002fbc9
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.100d02f2
mov esp, ebp
pop ebp
ret 4
call fcn.101a3dde
int3