Function at 0x44bf70
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x18], edi
test eax, eax
jne 0x44bfa1
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.004507e0
jmp 0x44c20f
cmp eax, 1
je 0x44c0ab
mov ebx, dword [edi + 0x58]
test ebx, ebx
jne 0x44bfb5
xor eax, eax
jmp 0x44bfe2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x44bfcb
xor eax, eax
jmp 0x44bfdf
lea eax, [edi + edi]
call fcn.00463310
mov eax, esp
push 3
push edi
push ebx
push eax
call fcn.0040dde0
mov edi, dword [ebp - 0x18]
mov ecx, dword [edi + 0x5c]
push ecx
push eax
mov ecx, edi
call fcn.004507e0
test eax, eax
jne 0x44c015
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x44c015
push 0
push 0
push 1
push 1
mov ecx, edi
call fcn.0044fe50
xor eax, eax
jmp 0x44c20f
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [edi + 0x6c]
movzx eax, ax
push ecx
mov dword [edi + 0x4c], eax
mov dword [edi + 0x50], 0
call fcn.004624b7
mov eax, esi
add esp, 4
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44c040
sub eax, edx
sar eax, 1
inc eax
push eax
call fcn.004604d5
add esp, 4
mov dword [edi + 0x6c], eax
test esi, esi
jne 0x44c064
xor eax, eax
jmp 0x44c08d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x44c077
xor eax, eax
jmp 0x44c08d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00463310
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.00404150
mov edx, dword [edi + 0x6c]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x44c090
mov dword [edi + 0x48], 1
mov eax, 1
jmp 0x44c20f
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
test esi, esi
jne 0x44c0c1
xor ebx, ebx
jmp 0x44c0ec
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x44c0d4
xor ebx, ebx
jmp 0x44c0ec
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00463310
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.00404150
mov ebx, eax
mov edx, 2
push ebx
mov word [ebp - 0x14], dx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x44c119
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x44c162
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov ecx, edi
mov word [ebp - 0x12], ax
call fcn.0044af80
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x44c14e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x44c20d
mov edx, dword [edi + 0x6c]
push edx
call fcn.004624b7
add esp, 4
test esi, esi
jne 0x44c183
xor eax, eax
jmp 0x44c1ac
push 0
push 0
push 7
push 1
mov ecx, edi
call fcn.0044fe50
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x44c20f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x44c196
xor eax, eax
jmp 0x44c1ac
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00463310
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.00404150
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44c1b0
sub eax, edx
inc eax
push eax
call fcn.004604d5
add esp, 4
mov dword [edi + 0x6c], eax
test esi, esi
jne 0x44c1ce
xor eax, eax
jmp 0x44c1f7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x44c1e1
xor eax, eax
jmp 0x44c1f7
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00463310
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.00404150
mov edx, dword [edi + 0x6c]
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x44c200
mov ebx, dword [ebp - 0x18]
mov eax, ebx
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret 8