Function at 0x41c100
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov dword [ebp - 0x464], ecx
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x448], eax
mov ecx, dword [ebp - 0x448]
mov edx, dword [ecx]
shr edx, 0x17
and edx, 1
je 0x41c16b
xor eax, eax
jmp 0x41c615
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax]
and ecx, 0xf0ffffff
mov edx, dword [ebp - 0x448]
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 - 0x454], ecx
mov edx, dword [ebp - 0x464]
add edx, 0xa0
mov dword [ebp - 0x428], edx
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x428]
add edx, 4
mov dword [ebp - 0x428], edx
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax]
shr ecx, 0x13
and ecx, 0xf
mov dword [ebp - 0x468], ecx
je 0x41c1e0
jmp 0x41c59c
mov edx, dword [ebp - 0x448]
mov eax, dword [edx + 4]
and eax, 0xffff
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
cmp ecx, 1
jne 0x41c235
mov edx, dword [ebp - 0x448]
mov eax, dword [edx + 4]
shr eax, 0x10
and eax, 0xffff
jne 0x41c235
mov ecx, dword [ebp - 0x448]
mov edx, dword [ecx + 8]
and edx, 0xffff
jne 0x41c235
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
je 0x41c2b0
mov edx, dword [ebp - 0x448]
mov eax, dword [edx + 4]
and eax, 0xffff0000
mov ecx, dword [ebp - 0x448]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x448]
mov eax, dword [edx + 4]
and eax, 0xffff
mov ecx, dword [ebp - 0x448]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x448]
mov eax, dword [edx + 8]
and eax, 0xffff0000
mov ecx, dword [ebp - 0x448]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x448]
mov eax, dword [edx + 8]
and eax, 0xffff
mov ecx, dword [ebp - 0x448]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x448]
mov eax, dword [edx]
and eax, 0xf0ffffff
or eax, 0x1000000
mov ecx, dword [ebp - 0x448]
mov dword [ecx], eax
jmp 0x41c59c
mov edx, dword [ebp - 0x41c]
movzx eax, byte [edx]
and eax, 0xc0
jne 0x41c2dd
mov ecx, dword [ebp - 0x428]
mov edx, dword [ebp - 0x41c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x428]
add eax, 4
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x428]
mov dword [ecx], 0
push 0x401
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp - 0x41c]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x464]
call fcn.0041b160
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jge 0x41c342
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax]
and ecx, 0xf0ffffff
or ecx, 0x1000000
mov edx, dword [ebp - 0x448]
mov dword [edx], ecx
jmp 0x41c59c
mov eax, dword [ebp - 0x41c]
add eax, dword [ebp - 0x424]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
mov dword [ebp - 0x45c], ecx
mov edx, dword [ebp - 0x45c]
movzx eax, byte [edx]
shl eax, 8
mov ecx, dword [ebp - 0x45c]
movzx edx, byte [ecx + 1]
or eax, edx
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x41c]
add eax, 2
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
mov dword [ebp - 0x460], ecx
mov edx, dword [ebp - 0x460]
movzx eax, byte [edx]
shl eax, 8
mov ecx, dword [ebp - 0x460]
movzx edx, byte [ecx + 1]
or eax, edx
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp - 0x41c]
add eax, 2
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x41c]
cmp ecx, dword [ebp - 0x454]
jbe 0x41c3f3
mov edx, dword [ebp - 0x448]
mov eax, dword [edx]
and eax, 0xf0ffffff
or eax, 0x1000000
mov ecx, dword [ebp - 0x448]
mov dword [ecx], eax
jmp 0x41c59c
cmp dword [ebp - 0x42c], 0xfc
jne 0x41c425
mov edx, dword [ebp - 0x464]
mov dword [edx + 0xa0], 0
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax]
and ecx, 0xfffeffff
mov edx, dword [ebp - 0x448]
mov dword [edx], ecx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x438], ecx
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
jne 0x41c478
xor eax, eax
jmp 0x41c615
mov eax, dword [ebp - 0x444]
push eax
mov ecx, dword [ebp - 0x464]
call fcn.0041c070
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x420]
add ecx, 1
mov dword [ebp - 0x420], ecx
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x430], edx
mov eax, dword [ebp - 0x41c]
sub eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp + 0x10]
push edx
lea eax, [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
mov eax, dword [ebp - 0x44c]
push eax
mov ecx, dword [ebp - 0x458]
push ecx
mov ecx, dword [ebp - 0x464]
call fcn.0041bdd0
mov dword [ebp - 0x424], eax
mov edx, dword [ebp - 0x458]
mov eax, dword [edx]
push eax
call fcn.0046d758
add esp, 4
mov ecx, dword [ebp - 0x458]
mov edx, dword [ecx + 0xc]
push edx
call fcn.0046d758
add esp, 4
mov eax, dword [ebp - 0x458]
push eax
call fcn.0046d758
add esp, 4
cmp dword [ebp - 0x424], 0
jne 0x41c530
jmp 0x41c59c
mov ecx, dword [ebp - 0x41c]
add ecx, dword [ebp - 0x424]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x424]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x424]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x448]
mov edx, dword [ecx + 4]
shr edx, 0x10
and edx, 0xffff
add edx, dword [ebp - 0x10]
and edx, 0xffff
shl edx, 0x10
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax + 4]
and ecx, 0xffff
or ecx, edx
mov edx, dword [ebp - 0x448]
mov dword [edx + 4], ecx
mov dword [ebp - 0x440], 1
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax]
or ecx, 0x800000
mov edx, dword [ebp - 0x448]
mov dword [edx], ecx
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax]
or ecx, 0x80000000
mov edx, dword [ebp - 0x448]
mov dword [edx], ecx
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax + 4]
shr ecx, 0x10
and ecx, 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x46a], ax
movzx edx, word [ebp - 0x46a]
and edx, 0xffff
shl edx, 0x10
mov eax, dword [ebp - 0x448]
mov ecx, dword [eax + 4]
and ecx, 0xffff
or ecx, edx
mov edx, dword [ebp - 0x448]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 0xc