Function at 0x1005ad20
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push edi
mov edi, ebx
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x1005ad30
mov dword [esp + 8], 0
sub edi, ecx
je 0x1005ad6d
cmp byte [edi + ebx - 1], 0x2e
jne 0x1005ad6d
push ebx
call fcn.10059cd0
mov ecx, dword [esp + 0x24]
mov edx, eax
add esp, 4
mov eax, 0xf
mov dword [ecx], edx
xor ecx, ecx
test edx, edx
pop edi
cmovne eax, ecx
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
test byte [eax], 0x40
jne 0x1005af2a
push 0x2e
push ebx
call fcn.10060230
add esp, 8
test eax, eax
jne 0x1005af2a
push str.HOSTALIASES
call fcn.10092407
add esp, 4
test eax, eax
je 0x1005af2a
push 0x100c49c8
push eax
call fcn.10079863
mov ebp, eax
add esp, 8
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x1005af03
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.1005d8d0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1005ae50
nop dword [eax]
push edi
push ebx
push dword [esp + 0x18]
call fcn.1005cd30
add esp, 0xc
test eax, eax
jne 0x1005ae37
mov eax, dword [esp + 0x10]
movzx eax, byte [eax + edi]
push eax
call fcn.10091a61
add esp, 4
test eax, eax
je 0x1005ae37
mov esi, dword [esp + 0x10]
add esi, edi
movzx eax, byte [esi]
push eax
call fcn.10091a61
add esp, 4
test eax, eax
je 0x1005ae32
nop dword [eax]
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.10091a61
add esp, 4
test eax, eax
jne 0x1005ae20
cmp byte [esi], 0
jne 0x1005ae7e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.1005d8d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1005ade0
push dword [esp + 0x10]
call dword [0x100d143c]
push ebp
call fcn.100692aa
add esp, 8
test esi, esi
je 0x1005af2a
cmp esi, 0xd
je 0x1005af2a
mov eax, esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xc
ret
mov al, byte [esi + 1]
lea edi, [esi + 1]
test al, al
je 0x1005aea8
nop dword [eax + eax]
movzx eax, al
push eax
call fcn.10091a61
add esp, 4
test eax, eax
jne 0x1005aea8
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1005ae90
mov ebx, edi
sub ebx, esi
lea eax, [ebx + 1]
push eax
call dword [0x100d1434]
mov ebp, dword [esp + 0x2c]
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x1005aed8
push ebx
push esi
push eax
call fcn.1005fb50
mov eax, dword [ebp]
add esp, 0xc
sub eax, esi
mov byte [eax + edi], 0
push dword [esp + 0x10]
call dword [0x100d143c]
push dword [esp + 0x1c]
call fcn.100692aa
add esp, 8
xor ecx, ecx
cmp dword [ebp], ecx
mov eax, 0xf
cmovne eax, ecx
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jl 0x1005af13
cmp eax, 3
jle 0x1005af2a
mov eax, dword [esp + 0x28]
pop esi
pop ebp
pop edi
mov dword [eax], 0
mov eax, 0xe
pop ebx
add esp, 0xc
ret
mov edi, dword [esp + 0x20]
test byte [edi], 0x20
jne 0x1005af4d
cmp dword [edi + 0x28], 0
je 0x1005af4d
mov eax, dword [esp + 0x28]
pop esi
pop ebp
pop edi
mov dword [eax], 0
xor eax, eax
pop ebx
add esp, 0xc
ret
push ebx
call fcn.10059cd0
mov ecx, dword [esp + 0x2c]
add esp, 4
mov edx, eax
mov eax, 0xf
pop esi
mov dword [ecx], edx
xor ecx, ecx
pop ebp
test edx, edx
pop edi
cmovne eax, ecx
pop ebx
add esp, 0xc
ret