Function at 0x4099d0
Capabilities:
Convert ip address from string
Resolve dns

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 0x53bbf5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x577018]
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 dword [ebp - 0x6c], esi
mov edi, dword [ebx + 8]
lea ecx, [ebp - 0x2c]
push edi
call fcn.00402a10
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [esi], xmm0
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov dword [ebp - 0x68], edi
jb 0x409a59
mov eax, dword [edi]
mov dword [ebp - 0x68], eax
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x409ae7
push ecx
push 0x3a
push eax
call fcn.005197e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x409ae4
sub esi, dword [ebp - 0x68]
cmp esi, 0xffffffff
je 0x409ae4
push 0xffffffffffffffff
lea eax, [esi + 1]
mov ecx, edi
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00402880
mov edi, eax
lea eax, [ebp - 0x44]
cmp eax, edi
je 0x409ac1
mov ecx, eax
call fcn.004028f0
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x5c]
call fcn.004028f0
cmp dword [ebp - 0x1c], esi
jb 0x409c8c
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmovae eax, dword [ebp - 0x2c]
mov byte [esi + eax], 0
mov esi, dword [ebp - 0x6c]
lea ecx, [esi + 0x10]
lea eax, [ebp - 0x2c]
cmp ecx, eax
je 0x409b02
cmp dword [ebp - 0x18], 0x10
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.00402bc0
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov ecx, 0x55933c
cmovae eax, dword [ebp - 0x2c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409b32
test dl, dl
je 0x409b2e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409b32
add eax, 2
add ecx, 2
test dl, dl
jne 0x409b12
xor eax, eax
jmp 0x409b37
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409b4a
push 7
push str.0.0.0.0
lea ecx, [ebp - 0x2c]
call fcn.00402bc0
cmp dword [ebp - 0x34], 0
je 0x409b69
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.005209f0
add esp, 4
movzx edi, ax
jmp 0x409b6b
xor edi, edi
cmp dword [ebp - 0x18], 0x10
lea eax, [esi + 4]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push eax
push ecx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x409b91
mov eax, 2
mov word [esi], ax
jmp 0x409bed
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], 2
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x5c], 1
cmovae eax, dword [ebp - 0x2c]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x58], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x409bed
mov ecx, dword [ebp - 0x68]
push ecx
mov eax, dword [ecx + 0x18]
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x30]
mov word [esi + 2], ax
cmp ecx, 0x10
jb 0x409c28
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409c1e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409c91
push ecx
push edx
call fcn.00517162
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x409c6a
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409c60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409c91
push ecx
push edx
call fcn.00517162
add esp, 8
mov eax, esi
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.00517154
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00402ed0
call fcn.0051eb64
int3