Function at 0x460600
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x5ce780
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.00438090
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov edi, dword [esp + 0x34]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x460634
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
lea esi, [eax + 1]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x460669
push esi
lea ecx, [esp + 0x20]
call fcn.00402650
mov edx, dword [esp + 0x1c]
push edx
push edi
call fcn.0045dc80
add esp, 8
test eax, eax
jne 0x46069d
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004381e0
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0051d859
add esp, 8
cmp eax, ebx
jl 0x46098f
mov ecx, dword [esp + 0x1c]
cmp eax, dword [ecx - 8]
jg 0x46098f
mov dword [ecx - 0xc], eax
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov word [edx + eax*2], cx
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], ebx
call fcn.0045dd30
add esp, 8
test eax, eax
jne 0x4606ee
mov dword [esp + 0x10], 0x50
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0045db10
mov ebp, dword [esp + 0x44]
add esp, 4
test eax, eax
je 0x460744
push ebx
lea ecx, [esp + 0x20]
call fcn.00438c70
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [esp + 0x44]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [edx], 1
mov edx, dword [esp + 0x38]
sub edx, eax
jmp 0x460730
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x460730
jmp 0x46093f
cmp dword [esp + 0x48], ebx
jne 0x460774
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov dword [eax], ebx
mov eax, dword [esp + 0x1c]
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x460760
jmp 0x46093f
mov edi, dword [esp + 0x4c]
cmp edi, ebx
jne 0x460848
push ebx
lea ecx, [esp + 0x20]
call fcn.00438c70
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x460824
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov edi, dword [esp + 0x44]
mov esi, dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp + 4], eax
mov dword [edi], 1
mov ecx, dword [ebp + 4]
push ecx
call esi
test eax, eax
je 0x460803
mov edx, dword [ebp + 4]
push edx
call esi
push eax
lea ecx, [esp + 0x18]
call fcn.0043a810
mov byte [esp + 0x2c], 1
mov ecx, dword [eax]
mov edx, dword [esp + 0x38]
jmp 0x4607e0
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x4607e0
mov byte [esp + 0x2c], bl
lea ecx, [esp + 0x14]
call fcn.004381e0
jmp 0x46093f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
mov dword [edi], ebx
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x460810
jmp 0x46093f
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov dword [eax], ebx
mov eax, dword [esp + 0x1c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x460834
jmp 0x46093f
sub esp, 8
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00438190
mov byte [esp + 0x34], 2
mov byte [esp + 0x34], bl
call fcn.00499a20
mov esi, eax
push edi
push esi
push 0x4e20
call fcn.00498a20
add esp, 0x14
cmp eax, 1
je 0x460677
cmp eax, ebx
jne 0x46091b
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4608e8
push eax
lea ecx, [esp + 0x18]
call fcn.0043a810
mov byte [esp + 0x2c], 3
mov ecx, dword [eax]
mov edx, dword [esp + 0x38]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x4608a7
mov byte [esp + 0x2c], bl
lea ecx, [esp + 0x14]
call fcn.004381e0
mov eax, dword [esp + 0x44]
mov dword [eax], 1
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp + 4], eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
jmp 0x46093f
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x1c]
mov dword [edx], ebx
mov edx, dword [esp + 0x38]
sub edx, eax
jmp 0x460900
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x460900
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
jmp 0x46093f
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov dword [eax], ebx
mov eax, dword [esp + 0x1c]
sub edx, eax
jmp 0x460930
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x460930
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov edx, 2
mov word [ecx], ax
push eax
mov word [ebp], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp + 2], ax
xor eax, eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004381e0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret
push 0x80070057
call fcn.00401300
int3