Function at 0x101298f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101a7bcc
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10222354]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push 0
push 0x101d3010
lea ecx, [ebp + 0xc]
call fcn.10007e20
cmp eax, 0xffffffff
jne 0x10129966
push 0
push 0x101d3020
lea ecx, [ebp + 0xc]
call fcn.10007e20
cmp eax, 0xffffffff
jne 0x10129966
push 0
push 0x101d3030
lea ecx, [ebp + 0xc]
call fcn.10007e20
cmp eax, 0xffffffff
je 0x10129acf
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0x414]
test ecx, ecx
je 0x10129acf
lea ecx, [ebp - 0x10]
call fcn.1000b9c0
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
push 4
call fcn.1016683f
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x101299b2
mov ecx, dword [ebp - 0x20]
call fcn.10105050
mov dword [ebp - 0x2c], eax
jmp 0x101299b9
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
lea ecx, [ebp + 0xc]
call fcn.1000bae0
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0xc]
call fcn.10007fa0
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10129a09
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx]
test eax, eax
jne 0x10129a6e
movzx ecx, byte [ebp + 0x14]
push ecx
push 0
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.10007fa0
push eax
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x41c]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x41c]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.1000baa0
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x28]
add ecx, 0xc4
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0xc4]
mov eax, dword [edx + 0xa8]
call eax
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
jmp 0x10129a7a
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
call fcn.1000baa0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xc4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xc4]
mov edx, dword [eax + 0xa8]
call edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000b9e0
mov ecx, dword [ebp - 0x24]
or ecx, 1
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1000ba80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1000ba80
mov eax, dword [ebp + 8]
jmp 0x10129b07
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000b9e0
mov eax, dword [ebp - 0x24]
or eax, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1000ba80
mov eax, dword [ebp + 8]
jmp 0x10129b07
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10