Function at 0x101324c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b202d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1022c684]
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 0x101de250
lea ecx, [ebp + 0xc]
call fcn.10004220
cmp eax, 0xffffffff
jne 0x10132536
push 0
push 0x101de260
lea ecx, [ebp + 0xc]
call fcn.10004220
cmp eax, 0xffffffff
jne 0x10132536
push 0
push 0x101de270
lea ecx, [ebp + 0xc]
call fcn.10004220
cmp eax, 0xffffffff
je 0x1013269f
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0x424]
test ecx, ecx
je 0x1013269f
lea ecx, [ebp - 0x10]
call fcn.10005d40
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
push 4
call fcn.1017072e
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10132582
mov ecx, dword [ebp - 0x20]
call fcn.1010c140
mov dword [ebp - 0x2c], eax
jmp 0x10132589
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
lea ecx, [ebp + 0xc]
call fcn.10005e60
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0xc]
call fcn.100043a0
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 0x101325d9
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx]
test eax, eax
jne 0x1013263e
movzx ecx, byte [ebp + 0x14]
push ecx
push 0
push 0
push 0
lea ecx, [ebp + 0xc]
call fcn.100043a0
push eax
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x42c]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x42c]
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.10005e20
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 0x1013264a
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x10]
call fcn.10005e20
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.10005d60
mov ecx, dword [ebp - 0x24]
or ecx, 1
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.10005e00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10005e00
mov eax, dword [ebp + 8]
jmp 0x101326d7
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.10005d60
mov eax, dword [ebp - 0x24]
or eax, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10005e00
mov eax, dword [ebp + 8]
jmp 0x101326d7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10