Function at 0x1007f8c8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a4a25
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100bc210]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
mov eax, dword [ebp + 8]
mov ebx, dword [esi + 0xc]
push 0x10
push 4
mov dword [esi + 0x2488], eax
mov eax, dword [esi + 0x2480]
push 2
push eax
call fcn.1007573e
mov eax, 0x246c
call fcn.1008f060
mov edi, esp
add esi, 0x10
mov dword [esp + 0x2490], esp
call fcn.10082fc7
lea edi, [esp + 0x2480]
call fcn.1002f57f
push 0x1000c9a4
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
mov dword [esp + 0x48], ebx
call fcn.1005f361
push 0x100191a0
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x48], 1
call fcn.1005fd4e
push 0x1001a260
lea ecx, [esp + 0x20]
push ecx
mov edi, eax
mov byte [esp + 0x48], 2
call fcn.1005fcf3
mov byte [esp + 0x40], 3
mov eax, dword [eax]
mov esi, dword [esp + 0x20]
mov edi, dword [esi + 8]
lea ecx, [esp + 0x18]
push ecx
push eax
push 0x1000ca00
lea eax, [esp + 0x34]
push eax
call fcn.10026605
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10084b37
mov byte [esp + 0x40], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jne 0x1007f9e8
xor ecx, ecx
cmp byte [esi + 4], bl
sete cl
lea edi, [ecx - 1]
and edi, 0xfff93fad
lea edi, [edi - 0x7ff8ffa9]
call fcn.1008024c
jmp 0x1007fb33
mov eax, dword [esi + 0x247c]
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov edi, esp
call fcn.10084ad6
add eax, 0x10
mov dword [edi], eax
call fcn.10028524
mov edi, eax
cmp edi, ebx
jge 0x1007fa6f
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x40], 7
mov eax, dword [esi + 0x247c]
push dword [eax]
lea eax, [esp + 0x20]
push 0x1001a280
push eax
call fcn.100847a7
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
add esp, 0xc
push dword [esp + 0x1c]
push ebx
call dword [eax + 4]
cmp byte [esi + 4], bl
je 0x1007fa59
mov edi, 0x80004004
call fcn.1008024c
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.10084b37
jmp 0x1007fb33
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov byte [esp + 0x40], 8
mov eax, dword [esi + 0x247c]
mov eax, dword [eax]
lea ecx, [esi - 8]
mov edx, dword [ecx]
push ecx
push ebx
push eax
push dword [esp + 0x20]
push ebx
call dword [edx + 0x2c]
mov dword [esp + 0x1c], eax
cmp eax, ebx
jge 0x1007faf4
cmp byte [esi + 4], bl
jne 0x1007faf4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push ebx
call dword [eax]
mov eax, dword [0x100bcf90]
mov ecx, 0x100bcf90
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x40], 9
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push 0x1001a2e0
push eax
call fcn.100847a7
mov edi, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
add esp, 0xc
push edi
push ebx
call dword [eax + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x40], 8
call fcn.10084b37
jmp 0x1007fb24
mov eax, dword [esi + 0x247c]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1007fb24
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push ebx
call dword [eax]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
push 0x1001a320
push ebx
call dword [eax + 4]
mov dword [esp + 0x1c], 2
mov edi, dword [esp + 0x1c]
call fcn.1008024c
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x44], 1
call fcn.10026646
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.10084b37
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.10084b37
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4