Function at 0x4cb370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4cb380
mov dword [ebp - 4], 0
sub esi, ecx
je 0x4cb3bb
cmp byte [esi + ebx - 1], 0x2e
jne 0x4cb3bb
push ebx
call fcn.004ca7d0
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 esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push edi
test byte [eax], 0x40
jne 0x4cb57b
push 0x2e
push ebx
call fcn.004e80a0
add esp, 8
test eax, eax
jne 0x4cb57b
push str.HOSTALIASES
call fcn.004fba8a
add esp, 4
test eax, eax
je 0x4cb57b
push 0x52ed68
push eax
call fcn.004f6a45
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x4cb556
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004cd190
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4cb490
push esi
push ebx
push dword [ebp - 4]
call fcn.004cc3c0
add esp, 0xc
test eax, eax
jne 0x4cb477
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
push eax
call fcn.004f1090
add esp, 4
test eax, eax
je 0x4cb477
mov edi, dword [ebp - 4]
add edi, esi
movzx eax, byte [edi]
push eax
call fcn.004f1090
add esp, 4
test eax, eax
je 0x4cb472
nop word [eax + eax]
movzx eax, byte [edi + 1]
inc edi
push eax
call fcn.004f1090
add esp, 4
test eax, eax
jne 0x4cb460
cmp byte [edi], 0
jne 0x4cb4c0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.004cd190
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4cb420
push dword [ebp - 4]
mov esi, dword [fcn.004b7430]
mov ecx, esi
call dword [0x51a4a0]
call esi
push dword [ebp - 8]
call fcn.004f6ad3
add esp, 8
cmp edi, 0xd
je 0x4cb57b
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [edi + 1]
lea ebx, [edi + 1]
test al, al
je 0x4cb4e8
nop word [eax + eax]
movzx eax, al
push eax
call fcn.004f1090
add esp, 4
test eax, eax
jne 0x4cb4e8
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x4cb4d0
mov esi, dword [0x55f1a8]
mov eax, ebx
sub eax, edi
mov ecx, esi
mov dword [ebp - 0x10], eax
inc eax
push eax
call dword [0x51a4a0]
call esi
mov esi, dword [ebp + 0x10]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x4cb522
push dword [ebp - 0x10]
push edi
push eax
call fcn.004e8240
mov eax, dword [esi]
add esp, 0xc
sub eax, edi
mov byte [eax + ebx], 0
push dword [ebp - 4]
mov esi, dword [fcn.004b7430]
mov ecx, esi
call dword [0x51a4a0]
call esi
push dword [ebp - 8]
call fcn.004f6ad3
mov ecx, dword [ebp + 0x10]
add esp, 8
xor edx, edx
mov eax, 0xf
cmp dword [ecx], edx
pop edi
pop esi
cmovne eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jl 0x4cb566
cmp eax, 3
jle 0x4cb57b
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, 0xe
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
test byte [esi], 0x20
jne 0x4cb59b
cmp dword [esi + 0x28], 0
je 0x4cb59b
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004ca7d0
mov ecx, dword [ebp + 0x10]
add esp, 4
mov edx, eax
mov eax, 0xf
mov dword [ecx], edx
xor ecx, ecx
pop edi
test edx, edx
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret