Function at 0x41845c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov dword [ebp - 0x460], ecx
mov dword [ebp - 0xc], 0
mov word [ebp - 0x454], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x438], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx]
shr edx, 0x17
and edx, 1
test edx, edx
je 0x4184c9
xor eax, eax
jmp 0x41898d
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax]
and ecx, 0xf0ffffff
mov edx, dword [ebp - 0x434]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
add eax, 0xc
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x460]
add edx, 0xa0
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x43c]
add edx, 4
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax]
shr ecx, 0x13
and ecx, 0xf
mov dword [ebp - 0x464], ecx
cmp dword [ebp - 0x464], 0
je 0x418542
jmp 0x418913
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 4]
and eax, 0xffff
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
and eax, 0xffff
cmp eax, 1
jne 0x4185a3
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 4]
shr edx, 0x10
and edx, 0xffff
test edx, edx
jne 0x4185a3
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax + 8]
and ecx, 0xffff
test ecx, ecx
jne 0x4185a3
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
test eax, eax
je 0x418624
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 4]
and edx, 0xffff0000
mov eax, dword [ebp - 0x434]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 4]
and edx, 0xffff
mov eax, dword [ebp - 0x434]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 8]
and edx, 0xffff0000
mov eax, dword [ebp - 0x434]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 8]
and edx, 0xffff
mov eax, dword [ebp - 0x434]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx]
and edx, 0xf0ffffff
or edx, 0x1000000
mov eax, dword [ebp - 0x434]
mov dword [eax], edx
jmp 0x418913
mov ecx, dword [ebp - 0x41c]
xor edx, edx
mov dl, byte [ecx]
and edx, 0xc0
test edx, edx
jne 0x418655
mov eax, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x41c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x43c]
add edx, 4
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x43c]
mov dword [eax], 0
push 0x401
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x41c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x460]
call fcn.004174b0
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
jge 0x4186b5
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
and eax, 0xf0ffffff
or eax, 0x1000000
mov ecx, dword [ebp - 0x434]
mov dword [ecx], eax
jmp 0x418913
mov edx, dword [ebp - 0x41c]
add edx, dword [ebp - 0x44c]
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x458]
xor edx, edx
mov dl, byte [ecx]
shl edx, 8
mov eax, dword [ebp - 0x458]
xor ecx, ecx
mov cl, byte [eax + 1]
or edx, ecx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp - 0x41c]
add edx, 2
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x45c]
xor edx, edx
mov dl, byte [ecx]
shl edx, 8
mov eax, dword [ebp - 0x45c]
xor ecx, ecx
mov cl, byte [eax + 1]
or edx, ecx
mov dword [ebp - 0x420], edx
mov edx, dword [ebp - 0x41c]
add edx, 2
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp - 0x10]
jbe 0x418769
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx]
and edx, 0xf0ffffff
or edx, 0x1000000
mov eax, dword [ebp - 0x434]
mov dword [eax], edx
jmp 0x418913
cmp dword [ebp - 0x42c], 0xfc
jne 0x41879a
mov ecx, dword [ebp - 0x460]
mov dword [ecx + 0xa0], 0
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
and eax, 0xfffeffff
mov ecx, dword [ebp - 0x434]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp + 0xc]
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x440], 0
lea eax, [ebp - 0x414]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x4187ea
xor eax, eax
jmp 0x41898d
mov edx, dword [ebp - 0x418]
push edx
mov ecx, dword [ebp - 0x460]
call fcn.004183d5
mov dword [ebp - 0x450], eax
mov eax, dword [ebp - 0x448]
add eax, 1
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x41c]
mov dword [ebp - 0x444], ecx
mov edx, dword [ebp - 0x41c]
sub edx, dword [ebp + 8]
mov dword [ebp - 0x424], edx
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x42c]
push ecx
mov edx, dword [ebp - 0x420]
push edx
mov eax, dword [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x460]
call fcn.00418162
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx]
push edx
call fcn.00466f28
add esp, 4
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.00466f28
add esp, 4
mov edx, dword [ebp - 0x450]
push edx
call fcn.00466f28
add esp, 4
cmp dword [ebp - 0x44c], 0
jne 0x4188a5
jmp 0x418913
mov eax, dword [ebp - 0x41c]
add eax, dword [ebp - 0x44c]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x44c]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x44c]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax + 4]
shr ecx, 0x10
and ecx, 0xffff
add ecx, dword [ebp - 0x424]
and ecx, 0xffff
shl ecx, 0x10
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 4]
and eax, 0xffff
or eax, ecx
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 4], eax
mov dword [ebp - 0x440], 1
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
or eax, 0x800000
mov ecx, dword [ebp - 0x434]
mov dword [ecx], eax
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
or eax, 0x80000000
mov ecx, dword [ebp - 0x434]
mov dword [ecx], eax
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 4]
shr eax, 0x10
and eax, 0xffff
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x468], ax
mov ecx, dword [ebp - 0x468]
and ecx, 0xffff
and ecx, 0xffff
shl ecx, 0x10
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 4]
and eax, 0xffff
or eax, ecx
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 0xc