Function at 0x10307d0
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1058550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.01010c62
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.01010a73
movzx eax, al
test eax, eax
je 0x103081f
push 0x1008e94
lea ecx, [ebp + 8]
call fcn.01011a82
lea ecx, [ebp + 0xc]
call fcn.01010a73
movzx ecx, al
test ecx, ecx
je 0x103083b
push 0x1008e6c
lea ecx, [ebp + 0xc]
call fcn.01011a82
lea ecx, [ebp + 0x10]
call fcn.01010a73
movzx edx, al
test edx, edx
je 0x1030857
push 0x1008e44
lea ecx, [ebp + 0x10]
call fcn.01011a82
lea eax, [ebp - 0x10]
push eax
push 0xb
mov ecx, dword [ebp - 0x48]
call fcn.0102ed60
test eax, eax
jne 0x1030950
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x103090e
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
lea edx, [ebp + 8]
push edx
call fcn.01010eb5
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x1008d30
call fcn.0101236d
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x48]
call fcn.0102fdd0
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x103090c
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.01010c92
mov eax, dword [ebp - 0x1c]
jmp 0x1030b7f
jmp 0x1030950
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.01010c92
mov eax, dword [ebp - 0x20]
jmp 0x1030b7f
lea edx, [ebp - 0x10]
push edx
push 0xc
mov ecx, dword [ebp - 0x48]
call fcn.0102ed60
test eax, eax
jne 0x1030a49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1030a07
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp + 0xc]
push eax
call fcn.01010eb5
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x1008d0c
call fcn.0101236d
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 7
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x48]
call fcn.0102fdd0
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x1030a05
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.01010c92
mov eax, dword [ebp - 0x2c]
jmp 0x1030b7f
jmp 0x1030a49
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.01010c92
mov eax, dword [ebp - 0x30]
jmp 0x1030b7f
lea eax, [ebp - 0x10]
push eax
push 0xd
mov ecx, dword [ebp - 0x48]
call fcn.0102ed60
test eax, eax
jne 0x1030b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1030b03
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
lea edx, [ebp + 0x10]
push edx
call fcn.01010eb5
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0x1006d40
call fcn.0101236d
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 9
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x48]
call fcn.0102fdd0
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x1030b01
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.01010c92
mov eax, dword [ebp - 0x3c]
jmp 0x1030b7f
jmp 0x1030b42
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.01010c92
mov eax, dword [ebp - 0x40]
jmp 0x1030b7f
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.01010c92
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc