Function at 0x100c05d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x100c05e0
mov dword [ebp - 4], 0
sub edi, ecx
je 0x100c061b
cmp byte [edi + ebx - 1], 0x2e
jne 0x100c061b
push ebx
call fcn.100bfa80
mov ecx, dword [ebp + 0x10]
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
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
test byte [eax], 0x40
jne 0x100c07c9
push 0x2e
push ebx
call fcn.100c28c0
add esp, 8
test eax, eax
jne 0x100c07c9
push str.HOSTALIASES
call fcn.100cfe2e
add esp, 4
test eax, eax
je 0x100c07c9
push 0x1013c2d0
push eax
call fcn.100cda3d
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x100c07a4
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.100c1b80
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100c06f0
push edi
push ebx
push dword [ebp - 4]
call fcn.100bea30
add esp, 0xc
test eax, eax
jne 0x100c06d7
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi]
push eax
call fcn.100ccb8d
add esp, 4
test eax, eax
je 0x100c06d7
mov esi, dword [ebp - 4]
add esi, edi
movzx eax, byte [esi]
push eax
call fcn.100ccb8d
add esp, 4
test eax, eax
je 0x100c06d2
nop word [eax + eax]
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.100ccb8d
add esp, 4
test eax, eax
jne 0x100c06c0
cmp byte [esi], 0
jne 0x100c071e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.100c1b80
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100c0680
push dword [ebp - 4]
call dword [0x10163188]
push dword [ebp - 8]
call fcn.100c5f7d
add esp, 8
test esi, esi
je 0x100c07c9
cmp esi, 0xd
je 0x100c07c9
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 1]
lea edi, [esi + 1]
test al, al
je 0x100c0748
nop dword [eax + eax]
movzx eax, al
push eax
call fcn.100ccb8d
add esp, 4
test eax, eax
jne 0x100c0748
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100c0730
mov ebx, edi
sub ebx, esi
lea eax, [ebx + 1]
push eax
call dword [0x10163180]
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
test ecx, ecx
je 0x100c077a
push ebx
push esi
push ecx
call fcn.100c29f0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [eax]
sub eax, esi
mov byte [eax + edi], 0
push dword [ebp - 4]
call dword [0x10163188]
push dword [ebp - 8]
call fcn.100c5f7d
mov ecx, dword [ebp + 0x10]
add esp, 8
xor edx, edx
mov eax, 0xf
cmp dword [ecx], edx
pop esi
pop edi
cmovne eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jl 0x100c07b4
cmp eax, 3
jle 0x100c07c9
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
mov dword [eax], 0
mov eax, 0xe
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
test byte [edi], 0x20
jne 0x100c07e9
cmp dword [edi + 0x28], 0
je 0x100c07e9
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
call fcn.100bfa80
mov ecx, dword [ebp + 0x10]
add esp, 4
mov edx, eax
mov eax, 0xf
mov dword [ecx], edx
xor ecx, ecx
pop esi
test edx, edx
pop edi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret