Function at 0x1005f850
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 0x100d5914
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10105230]
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 0x1005f986
cmp eax, 0x17
jne 0x1005faa7
movups xmm0, xmmword [0x100e0ba0]
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 0x1005faa7
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 0x1005faa7
push 0x100e074e
push 0x58
call fcn.100954f9
mov edi, eax
add esp, 8
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x1005f965
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 0x1005f950
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.1005ec00
mov edi, eax
jmp 0x1005f967
xor edi, edi
mov byte [ebp - 4], 0
test edi, edi
je 0x1005faa7
push edi
lea eax, [edi + 0x54]
push eax
push 0
push 0
push 0x1c
lea eax, [ebp - 0x30]
jmp 0x1005fa3f
mov eax, dword [0x100e0b9c]
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 0x1005faa7
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 0x100e074e
push 0x58
mov word [ebp - 0x22], ax
call fcn.100954f9
add esp, 8
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1005fa27
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 0x1005fa12
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.1005ec00
mov edi, eax
jmp 0x1005fa29
xor edi, edi
mov byte [ebp - 4], 0
test edi, edi
je 0x1005faa7
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 [0x1010eef4]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x1005fae7
cmp eax, 0x3e5
je 0x1005fae7
cmp byte [edi + 0x48], 0
je 0x1005fa7d
mov eax, dword [edi + 0x50]
test eax, eax
je 0x1005fa7d
push eax
call fcn.100951ac
add esp, 4
mov ecx, dword [edi + 0x44]
lea esi, [edi + 0x20]
test ecx, ecx
je 0x1005fa9c
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.1009517b
add esp, 8
xor al, al
mov ecx, dword [ebx + 0x34]
mov byte [ebp - 0x31], al
test ecx, ecx
je 0x1005fac7
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.10094e23
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x30
mov al, 1
jmp 0x1005faa9