Function at 0x10001a6e
Capabilities:
Check if file exists

Disassembly:
jmp 0x100aa1bd
push 0x50
mov eax, 0x101df6f0
call fcn.100029be
mov esi, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.10001dc0
xor ebx, ebx
mov dword [ebp + 8], eax
pop ecx
xor ecx, ecx
inc ebx
test eax, eax
js 0x100aa3a8
lea eax, [edi + eax*2]
cmp word [eax + 2], cx
je 0x100aa3a8
push eax
lea ecx, [ebp - 0x34]
call fcn.100013c0
xor eax, eax
lea ecx, [ebp - 0x28]
push edi
mov dword [ebp - 4], eax
call fcn.100013c0
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp ecx, dword [ebp - 0x24]
jae 0x100aa220
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x24], ecx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0x30]
cmp ecx, 6
jbe 0x100aa242
mov eax, dword [ebp - 0x34]
push 0x101f6e38
lea eax, [eax + ecx*2]
add eax, 0xfffffff4
push eax
call fcn.1000572c
pop ecx
pop ecx
test al, al
jne 0x100aa24f
push str.:_DATA
lea ecx, [ebp - 0x34]
call fcn.1000218f
push dword [ebp - 0x28]
call fcn.100059c0
pop ecx
mov ecx, dword [ebp - 0x28]
test al, al
je 0x100aa29c
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x100aa275
cmp eax, 3
jne 0x100aa29c
push 0x5c
pop eax
cmp word [ecx + 4], ax
jne 0x100aa29c
mov ecx, esi
call fcn.10004714
xor eax, eax
lea ecx, [esi + 0x28]
mov dword [ecx + 4], eax
xor edx, edx
cmp dword [ebp + 8], 2
mov eax, dword [ecx]
mov word [eax], dx
jne 0x100aa2ac
lea eax, [ebp - 0x28]
push eax
call fcn.10001ff5
jmp 0x100aa2ac
push ecx
mov ecx, esi
call fcn.10001a6e
test al, al
je 0x100aa396
and dword [esi + 0x20], 0xfffffbef
xor eax, eax
or dword [ebp - 0x44], 0xffffffff
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
call fcn.10006d39
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.10001faa
jmp 0x100aa308
cmp byte [ebp + 0xb], 0
je 0x100aa359
push dword [ebp - 0x34]
push dword [ebp - 0x5c]
call fcn.10007b3f
pop ecx
pop ecx
test al, al
jne 0x100aa322
push dword [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.10009e99
pop ecx
lea ecx, [ebp - 0x5c]
call fcn.10001faa
lea eax, [ebp + 0xb]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x44]
call fcn.100084c2
test al, al
jne 0x100aa2dc
jmp 0x100aa361
mov eax, dword [ebp - 0x58]
cmp eax, 7
jbe 0x100aa33d
lea ecx, [eax - 6]
cmp ecx, eax
jae 0x100aa33d
mov eax, dword [ebp - 0x5c]
xor edx, edx
mov dword [ebp - 0x58], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [esi + 0x28]
call fcn.10001e42
mov eax, dword [ebp - 0x4c]
mov dword [esi], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 4], eax
mov byte [esi + 0x24], bl
jmp 0x100aa365
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov bl, al
push dword [ebp - 0x5c]
call fcn.10009e99
push dword [ebp - 0x40]
call fcn.10009e99
pop ecx
pop ecx
lea ecx, [ebp - 0x44]
call fcn.10008b3e
push dword [ebp - 0x28]
call fcn.10009e99
push dword [ebp - 0x34]
call fcn.10009e99
pop ecx
pop ecx
jmp 0x100aa57e
push dword [ebp - 0x28]
call fcn.10009e99
push dword [ebp - 0x34]
call fcn.10009e99
pop ecx
pop ecx
or dword [ebp - 0x10], 0xffffffff
push esi
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 5
call fcn.100010b4
test al, al
jne 0x100aa576
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 2
je 0x100aa3ed
cmp eax, 0x35
je 0x100aa3ed
cmp eax, 0x43
je 0x100aa3ed
cmp eax, 0x7b
je 0x100aa3ed
cmp eax, 0xa1
jne 0x100aa572
push edi
call fcn.10009d68
pop ecx
push 4
xor ecx, ecx
test al, al
movzx eax, word [edi]
pop edx
cmovne ecx, edx
push 0x5c
pop edx
mov dword [ebp + 8], ecx
cmp ax, dx
je 0x100aa411
cmp eax, 0x2f
jne 0x100aa453
xor eax, eax
cmp word [edi + 2], ax
jne 0x100aa453
push edi
call fcn.10002509
mov dword [ebp + 8], eax
pop ecx
cmp eax, 0xffffffff
je 0x100aa572
test al, 0x10
je 0x100aa572
mov ecx, esi
call fcn.10004714
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x28]
mov word [eax], cx
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], eax
jmp 0x100aa576
lea eax, [edi + ecx*2]
push eax
mov dword [ebp - 0x14], eax
call fcn.10005d99
pop ecx
test al, al
je 0x100aa4c0
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp word [edi + eax*2 + 6], cx
jne 0x100aa4c0
push edi
call fcn.10002509
mov dword [ebp + 8], eax
pop ecx
cmp eax, 0xffffffff
je 0x100aa572
test al, 0x10
je 0x100aa572
mov ecx, esi
call fcn.10004714
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x28]
push dword [ebp - 0x14]
mov dword [esi + 0x20], eax
call fcn.1000516e
push 2
pop eax
cmp dword [esi + 0x2c], eax
jbe 0x100aa576
mov dword [esi + 0x2c], eax
xor ecx, ecx
mov eax, dword [esi + 0x28]
mov word [eax + 4], cx
jmp 0x100aa576
push edi
call fcn.10002d79
pop ecx
test eax, eax
je 0x100aa572
lea eax, [edi + eax*2]
xor ecx, ecx
mov dword [ebp - 0x14], eax
cmp word [eax], cx
je 0x100aa572
push eax
call fcn.1000a26d
pop ecx
test eax, eax
jns 0x100aa572
push edi
lea ecx, [ebp - 0x40]
call fcn.100013c0
push 0x5c
pop eax
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.10002757
push 0x2a
lea ecx, [ebp - 0x40]
call fcn.10002757
push esi
push dword [ebp - 0x40]
xor eax, eax
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], al
call fcn.100010b4
test al, al
je 0x100aa547
lea eax, [esi + 0x28]
push 0x101f6d64
push dword [eax]
mov dword [ebp + 8], eax
call fcn.10003e6d
pop ecx
pop ecx
test eax, eax
jne 0x100aa544
mov ecx, dword [ebp + 8]
jmp 0x100aa5a0
mov byte [ebp + 0xb], bl
push edi
call fcn.10002509
cmp byte [ebp + 0xb], 0
pop ecx
mov dword [ebp - 0x1c], eax
jne 0x100aa588
cmp eax, 0xffffffff
je 0x100aa560
test al, 0x10
jne 0x100aa588
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x40]
call fcn.10009e99
pop ecx
xor eax, eax
mov bl, al
lea ecx, [ebp - 0x10]
call fcn.10008b3e
mov al, bl
call fcn.10007b03
ret 4
mov ecx, esi
call fcn.10004714
cmp dword [ebp - 0x1c], 0xffffffff
lea ecx, [esi + 0x28]
push 0x10
pop eax
cmovne eax, dword [ebp - 0x1c]
mov dword [esi + 0x20], eax
push dword [ebp - 0x14]
call fcn.1000516e
push dword [ebp - 0x40]
call fcn.10009e99
pop ecx
jmp 0x100aa576