Function at 0x1001ac40
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001ac50
sub eax, edx
mov ebx, eax
mov dword [esp + 8], 0
je 0x1001ac8b
cmp byte [ebx + esi - 1], 0x2e
jne 0x1001ac8b
mov ebx, esi
call fcn.1001a810
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
pop esi
add eax, 0xf
pop ebx
add esp, 0xc
ret
push ebp
push edi
mov edi, dword [esp + 0x20]
test byte [edi], 0x40
jne 0x1001ae47
push 0x2e
push esi
call fcn.10022420
add esp, 8
test eax, eax
jne 0x1001ae47
push str.HOSTALIASES
call fcn.10022581
add esp, 4
test eax, eax
je 0x1001ae47
push 0x1012a234
push eax
call fcn.1002141c
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x1001ae18
lea edx, [esp + 0x14]
push edx
push ebp
lea edi, [esp + 0x18]
call fcn.1001c380
mov esi, eax
add esp, 8
test esi, esi
jne 0x1001ad61
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
push ebx
push eax
push esi
call fcn.100329be
add esp, 0xc
test eax, eax
jne 0x1001ad49
movzx ecx, byte [esi + ebx]
add esi, ebx
push ecx
call fcn.1001fed5
add esp, 4
test eax, eax
je 0x1001ad49
movzx edx, byte [esi]
push edx
call fcn.1001fed5
add esp, 4
test eax, eax
je 0x1001ad44
movzx eax, byte [esi + 1]
add esi, 1
push eax
call fcn.1001fed5
add esp, 4
test eax, eax
jne 0x1001ad30
cmp byte [esi], 0
jne 0x1001ad90
lea ecx, [esp + 0x14]
push ecx
push ebp
lea edi, [esp + 0x18]
call fcn.1001c380
mov esi, eax
add esp, 8
test esi, esi
je 0x1001acf6
mov edx, dword [esp + 0x10]
push edx
call dword [0x10138fdc]
push ebp
call fcn.1001f431
add esp, 8
test esi, esi
je 0x1001ae3f
cmp esi, 0xd
je 0x1001ae3f
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
mov al, byte [esi + 1]
test al, al
lea ebx, [esi + 1]
je 0x1001adba
lea ebx, [ebx]
movzx edx, al
push edx
call fcn.1001fed5
add esp, 4
test eax, eax
jne 0x1001adba
mov al, byte [ebx + 1]
add ebx, 1
test al, al
jne 0x1001ada0
mov ebp, ebx
sub ebp, esi
lea eax, [ebp + 1]
push eax
call dword [0x10138fd4]
mov ecx, dword [esp + 0x2c]
mov edi, eax
add esp, 4
test edi, edi
mov dword [ecx], edi
je 0x1001ade8
push ebp
push esi
push edi
call fcn.10024b20
add esp, 0xc
sub edi, esi
mov byte [edi + ebx], 0
mov edx, dword [esp + 0x10]
push edx
call dword [0x10138fdc]
mov eax, dword [esp + 0x1c]
push eax
call fcn.1001f431
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
add esp, 8
neg eax
pop edi
sbb eax, eax
pop ebp
and eax, 0xfffffff1
pop esi
add eax, 0xf
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jl 0x1001ae28
cmp eax, 3
jle 0x1001ae47
mov eax, dword [esp + 0x28]
pop edi
pop ebp
pop esi
mov dword [eax], 0
mov eax, 0xe
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
test byte [edi], 0x20
jne 0x1001ae66
cmp dword [edi + 0x28], 0
je 0x1001ae66
mov ecx, dword [esp + 0x28]
pop edi
pop ebp
pop esi
mov dword [ecx], 0
xor eax, eax
pop ebx
add esp, 0xc
ret
mov ebx, esi
call fcn.1001a810
mov edx, dword [esp + 0x28]
mov dword [edx], eax
neg eax
pop edi
sbb eax, eax
pop ebp
and eax, 0xfffffff1
pop esi
add eax, 0xf
pop ebx
add esp, 0xc
ret