Function at 0x101a16f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x294
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x101ad470
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test ebx, ebx
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x101a1802
js 0x101a19f9
movzx eax, byte [0x10284b49]
push 1
push ebx
call fcn.10013770
add esp, 8
test eax, eax
je 0x101a1a02
mov edi, dword [ebp + 0xc]
push ebx
push edi
mov dword [ebp - 0x24], eax
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movzx eax, byte [0x10284b49]
push 1
push ebx
call fcn.10013770
add esp, 8
test eax, eax
je 0x101a1a0e
mov esi, eax
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x29c], esi
mov dword [ebp - 0x298], ebx
mov byte [ebp - 0x294], 0
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x2a0]
push 1
push 0x1024a350
push eax
call fcn.1019b140
add esp, 0xc
mov eax, dword [ebp - 0x2a0]
mov edx, dword [ebp - 0x29c]
mov esi, dword [ebp - 0x298]
mov byte [ebp - 0x1e], 1
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], edx
push esi
call fcn.101aab20
add esp, 4
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
mov ecx, edx
neg ecx
mov ecx, dword [ebp - 0x48]
jno 0x101a1815
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
jmp 0x101a1853
mov byte [esi + 4], 0
mov dword [esi + 8], 3
mov dword [esi], 2
jmp 0x101a1882
mov dword [ebp - 0x2a0], edx
mov dword [ebp - 0x298], ecx
mov dword [ebp - 0x29c], eax
mov byte [ebp - 0x1e], 1
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x2a0]
push 1
call fcn.101abc40
add esp, 4
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, ecx
neg eax
jno 0x101a1898
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 2
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x101a1874
push 1
push eax
push dword [ebp - 0x30]
call fcn.10013780
add esp, 0xc
push 1
push edi
push dword [ebp - 0x24]
call fcn.10013780
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x294
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x2c], ecx
push 0x250
push 0
lea eax, [ebp - 0x2a0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2a0]
push eax
mov dword [ebp - 0x34], ebx
push ebx
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x101a1966
mov ebx, eax
movzx eax, byte [0x10284b49]
push 4
push 0x18
call fcn.10013770
add esp, 8
test eax, eax
je 0x101a1a26
mov esi, eax
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 8], edi
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov edi, dword [ebp + 8]
mov byte [esi + 0x14], 0
lea eax, [edi + 4]
push 0x250
lea ecx, [ebp - 0x2a0]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi], 1
mov dword [edi + 0x254], esi
mov esi, edi
mov dword [edi + 0x258], ebx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x101a1950
add eax, eax
push 2
push eax
push dword [ebp - 0x34]
call fcn.10013780
add esp, 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x101a1882
push 1
push eax
push dword [ebp - 0x30]
jmp 0x101a187a
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x101a19cc
movzx eax, byte [0x10284b49]
push 4
push 0x18
call fcn.10013770
add esp, 8
test eax, eax
je 0x101a1a3e
mov ecx, dword [ebp - 0x24]
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 8], edi
mov dword [esi], 0
mov dword [esi + 0x254], eax
mov dword [esi + 0x258], 0xffffffff
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edi
mov byte [eax + 0x14], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x101a1940
jmp 0x101a1950
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi], 2
test eax, eax
je 0x101a185f
add eax, eax
push 2
push eax
push dword [ebp - 0x34]
call fcn.10013780
add esp, 0xc
jmp 0x101a185f
xor eax, eax
push ebx
push eax
call fcn.101cc661
mov eax, 1
push ebx
push eax
call fcn.101cc661
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 0
push ebx
push 1
call fcn.101cc661
add esp, 8
jmp 0x101a1a51
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x10], 4
push 0x18
push 4
call fcn.101cc679
add esp, 8
jmp 0x101a1a51
mov dword [ebp - 0x10], 5
push 0x18
push 4
call fcn.101cc679
add esp, 8
ud2