Function at 0x1005c880
Capabilities:
Convert ip address from string

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cf684
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x100fd230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebx + 8]
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x58]
cmp eax, 2
je 0x1005c9b6
cmp eax, 0x17
jne 0x1005cad7
movups xmm0, xmmword [0x100d9b70]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push 0x1c
push eax
push dword [esi + 0xc]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1005cad7
push dword [ebx + 0xc]
mov eax, 0x17
mov word [ebp - 0x30], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2e], ax
lea eax, [ebp - 0x28]
push eax
push edi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1005cad7
push 0x100d971e
push 0x58
call fcn.1008fb1b
mov edi, eax
add esp, 8
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x1005c995
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x38], ecx
mov dword [ecx + 0x24], 0
mov byte [ebp - 4], 4
mov edx, dword [ebx + 0x34]
test edx, edx
je 0x1005c980
mov eax, dword [edx]
push ecx
mov ecx, edx
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x24], eax
push 0
push 0
push 1
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.1005bc30
mov edi, eax
jmp 0x1005c997
xor edi, edi
mov byte [ebp - 4], 0
test edi, edi
je 0x1005cad7
push edi
lea eax, [edi + 0x54]
push eax
push 0
push 0
push 0x1c
lea eax, [ebp - 0x30]
jmp 0x1005ca6f
mov eax, dword [0x100d9b6c]
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push 0x10
push eax
push dword [esi + 0xc]
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], 2
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1005cad7
mov eax, 2
push edi
mov word [ebp - 0x24], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebx + 0xc]
mov dword [ebp - 0x20], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x100d971e
push 0x58
mov word [ebp - 0x22], ax
call fcn.1008fb1b
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1005ca57
sub esp, 0x28
mov edi, esp
mov dword [ebp - 0x3c], edi
mov dword [edi + 0x24], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x1005ca42
mov eax, dword [ecx]
push edi
mov eax, dword [eax]
call eax
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x38]
push 0
push 0
push 1
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1005bc30
mov edi, eax
jmp 0x1005ca59
xor edi, edi
mov byte [ebp - 4], 0
test edi, edi
je 0x1005cad7
push edi
lea eax, [edi + 0x54]
push eax
push 0
push 0
push 0x10
lea eax, [ebp - 0x24]
push eax
mov dword [edi + 0x14], esi
push dword [esi + 0xc]
call dword [0x10106348]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1005cb17
cmp eax, 0x3e5
je 0x1005cb17
cmp byte [edi + 0x48], 0
je 0x1005caad
mov eax, dword [edi + 0x50]
test eax, eax
je 0x1005caad
push eax
call fcn.1008f7ce
add esp, 4
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005cacc
mov edx, dword [ecx]
cmp ecx, esi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [esi + 0x24], 0
push 0x58
push edi
call fcn.1008f79d
add esp, 8
xor al, al
mov ecx, dword [ebx + 0x34]
mov byte [ebp - 0x31], al
test ecx, ecx
je 0x1005caf7
mov esi, dword [ecx]
lea eax, [ebx + 0x10]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1008f445
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30
mov al, 1
jmp 0x1005cad9