Function at 0x1005b010
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 0x100d15a4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10100230]
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 0x1005b146
cmp eax, 0x17
jne 0x1005b267
movups xmm0, xmmword [0x100dcbc0]
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 0x1005b267
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 0x1005b267
push 0x100dc776
push 0x58
call fcn.100922aa
mov edi, eax
add esp, 8
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x1005b125
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 0x1005b110
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.1005a3c0
mov edi, eax
jmp 0x1005b127
xor edi, edi
mov byte [ebp - 4], 0
test edi, edi
je 0x1005b267
push edi
lea eax, [edi + 0x54]
push eax
push 0
push 0
push 0x1c
lea eax, [ebp - 0x30]
jmp 0x1005b1ff
mov eax, dword [0x100dcbbc]
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 0x1005b267
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 0x100dc776
push 0x58
mov word [ebp - 0x22], ax
call fcn.100922aa
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1005b1e7
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 0x1005b1d2
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.1005a3c0
mov edi, eax
jmp 0x1005b1e9
xor edi, edi
mov byte [ebp - 4], 0
test edi, edi
je 0x1005b267
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 [0x101083c4]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1005b2a7
cmp eax, 0x3e5
je 0x1005b2a7
cmp byte [edi + 0x48], 0
je 0x1005b23d
mov eax, dword [edi + 0x50]
test eax, eax
je 0x1005b23d
push eax
call fcn.10091f5d
add esp, 4
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005b25c
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.10091f2c
add esp, 8
xor al, al
mov ecx, dword [ebx + 0x34]
mov byte [ebp - 0x31], al
test ecx, ecx
je 0x1005b287
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.10091bd4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30
mov al, 1
jmp 0x1005b269