Function at 0x1007f8b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f3440
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
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 dword [ebp - 4], 1
xor esi, esi
mov eax, dword [ebp + 8]
or ebx, 0xffffffff
cmp dword [eax - 0xc], esi
je 0x1007fb2e
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], esi
je 0x1007fb2e
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push 0xfde9
push dword [ebp + 0xc]
push eax
call fcn.100d15d0
add esp, 0xc
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x1007f92c
mov eax, dword [eax]
lea ecx, [ebp - 0x38]
push ecx
push 0x10204400
push eax
call fcn.100819e0
add esp, 0xc
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1007f976
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007f96c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007fb89
push edx
push ecx
call fcn.100cff81
add esp, 8
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x3c], eax
cmp edi, eax
je 0x1007fac8
nop dword [eax]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.100041a0
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 5
push str.RegKey
push dword [ebp + 8]
call fcn.101a8c54
add esp, 0xc
test eax, eax
jne 0x1007fa3b
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x40], esp
mov dword [ebp - 0x44], esi
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 7
mov byte [ebp - 4], 5
call fcn.1000ede0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1007faaa
call fcn.1000ed10
test eax, eax
je 0x1007fa7e
push 1
push ecx
mov esi, esp
mov dword [ebp - 0x40], esp
mov dword [ebp - 0x48], esi
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 9
mov byte [ebp - 4], 5
call fcn.1000ede0
add esp, 8
jmp 0x1007fa78
push str.File
push dword [ebp + 8]
call fcn.101a8c54
add esp, 8
test eax, eax
je 0x1007fa63
push str.Directory
push dword [ebp + 8]
call fcn.101a8c54
add esp, 8
test eax, eax
jne 0x1007fa7e
lea eax, [ebp - 0x2c]
push eax
call fcn.1000a0a0
add esp, 4
push dword [ebp - 0x2c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
test esi, esi
jne 0x1007faaa
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007fa9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, dword [ebp - 0x3c]
jne 0x1007f9a0
jmp 0x1007fac8
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007fac8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1007fb2e
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp - 0x34]
push eax
call fcn.10007490
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov ecx, dword [ebp - 0x38]
sub eax, ecx
sar eax, 2
lea edx, [eax*4]
mov eax, ecx
cmp edx, 0x1000
jb 0x1007fb0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007fb8e
push edx
push ecx
call fcn.100cff81
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1007fb4c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1007fb6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.100d02f2
mov esp, ebp
pop ebp
ret
call fcn.101a3dde
call fcn.101a3dde
int3