Function at 0x445240
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x5c5ebc]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x46c], ecx
mov dword [ebp - 0xc], 0
xor eax, eax
mov word [ebp - 8], ax
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x444], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x450], ecx
mov edx, dword [ebp - 0x450]
mov eax, dword [edx]
shr eax, 0x17
and eax, 1
je 0x4452b5
xor eax, eax
jmp 0x445769
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx]
and edx, 0xf0ffffff
mov eax, dword [ebp - 0x450]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
add ecx, 0xc
mov dword [ebp - 0x424], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp + 0xc]
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x46c]
add eax, 0xa0
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x430]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp - 0x430]
add eax, 4
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx]
shr edx, 0x13
and edx, 0xf
mov dword [ebp - 0x470], edx
je 0x445329
jmp 0x4456f1
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 4]
and ecx, 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
cmp edx, 1
jne 0x445383
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 4]
shr ecx, 0x10
and ecx, 0xffff
jne 0x445383
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 8]
and eax, 0xffff
jne 0x445383
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 8]
shr edx, 0x10
and edx, 0xffff
je 0x445404
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 4]
and ecx, 0xffff0000
mov edx, dword [ebp - 0x450]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 4]
and ecx, 0xffff
mov edx, dword [ebp - 0x450]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 8]
and ecx, 0xffff0000
mov edx, dword [ebp - 0x450]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax + 8]
and ecx, 0xffff
mov edx, dword [ebp - 0x450]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax]
and ecx, 0xf0ffffff
or ecx, 0x1000000
mov edx, dword [ebp - 0x450]
mov dword [edx], ecx
jmp 0x4456f1
mov eax, dword [ebp - 0x424]
movzx ecx, byte [eax]
and ecx, 0xc0
jne 0x445432
mov edx, dword [ebp - 0x430]
mov eax, dword [ebp - 0x424]
mov dword [edx], eax
mov ecx, dword [ebp - 0x430]
add ecx, 4
mov dword [ebp - 0x430], ecx
mov edx, dword [ebp - 0x430]
mov dword [edx], 0
push 0x401
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x424]
push ecx
mov edx, dword [ebp - 0x45c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x46c]
call fcn.00444290
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0
jge 0x445497
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx]
and edx, 0xf0ffffff
or edx, 0x1000000
mov eax, dword [ebp - 0x450]
mov dword [eax], edx
jmp 0x4456f1
mov ecx, dword [ebp - 0x424]
add ecx, dword [ebp - 0x42c]
mov dword [ebp - 0x424], ecx
mov edx, dword [ebp - 0x424]
mov dword [ebp - 0x464], edx
mov eax, dword [ebp - 0x464]
movzx ecx, byte [eax]
shl ecx, 8
mov edx, dword [ebp - 0x464]
movzx eax, byte [edx + 1]
or ecx, eax
mov dword [ebp - 0x434], ecx
mov ecx, dword [ebp - 0x424]
add ecx, 2
mov dword [ebp - 0x424], ecx
mov edx, dword [ebp - 0x424]
mov dword [ebp - 0x468], edx
mov eax, dword [ebp - 0x468]
movzx ecx, byte [eax]
shl ecx, 8
mov edx, dword [ebp - 0x468]
movzx eax, byte [edx + 1]
or ecx, eax
mov dword [ebp - 0x454], ecx
mov ecx, dword [ebp - 0x424]
add ecx, 2
mov dword [ebp - 0x424], ecx
mov edx, dword [ebp - 0x424]
cmp edx, dword [ebp - 0x45c]
jbe 0x44554a
mov eax, dword [ebp - 0x450]
mov ecx, dword [eax]
and ecx, 0xf0ffffff
or ecx, 0x1000000
mov edx, dword [ebp - 0x450]
mov dword [edx], ecx
jmp 0x4456f1
cmp dword [ebp - 0x434], 0xfc
jne 0x44557c
mov eax, dword [ebp - 0x46c]
mov dword [eax + 0xa0], 0
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx]
and edx, 0xfffeffff
mov eax, dword [ebp - 0x450]
mov dword [eax], edx
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x448], 0
lea edx, [ebp - 0x420]
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
jne 0x4455cf
xor eax, eax
jmp 0x445769
mov ecx, dword [ebp - 0x44c]
push ecx
mov ecx, dword [ebp - 0x46c]
call fcn.004451b0
mov dword [ebp - 0x460], eax
mov edx, dword [ebp - 0x428]
add edx, 1
mov dword [ebp - 0x428], edx
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x438], eax
mov ecx, dword [ebp - 0x424]
sub ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x440]
push ecx
mov edx, dword [ebp - 0x450]
push edx
mov eax, dword [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
mov edx, dword [ebp - 0x460]
push edx
mov ecx, dword [ebp - 0x46c]
call fcn.00444f10
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x460]
mov ecx, dword [eax]
push ecx
call fcn.0052b1c0
add esp, 4
mov edx, dword [ebp - 0x460]
mov eax, dword [edx + 0xc]
push eax
call fcn.0052b1c0
add esp, 4
mov ecx, dword [ebp - 0x460]
push ecx
call fcn.0052b1c0
add esp, 4
cmp dword [ebp - 0x42c], 0
jne 0x445687
jmp 0x4456f1
mov edx, dword [ebp - 0x424]
add edx, dword [ebp - 0x42c]
mov dword [ebp - 0x424], edx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x42c]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x42c]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 0x450]
mov eax, dword [edx + 4]
shr eax, 0x10
and eax, 0xffff
add eax, dword [ebp - 0x10]
and eax, 0xffff
shl eax, 0x10
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 4]
and edx, 0xffff
or edx, eax
mov eax, dword [ebp - 0x450]
mov dword [eax + 4], edx
mov dword [ebp - 0x448], 1
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx]
or edx, 0x800000
mov eax, dword [ebp - 0x450]
mov dword [eax], edx
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx]
or edx, 0x80000000
mov eax, dword [ebp - 0x450]
mov dword [eax], edx
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 4]
shr edx, 0x10
and edx, 0xffff
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x472], ax
movzx eax, word [ebp - 0x472]
and eax, 0xffff
shl eax, 0x10
mov ecx, dword [ebp - 0x450]
mov edx, dword [ecx + 4]
and edx, 0xffff
or edx, eax
mov eax, dword [ebp - 0x450]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00527aad
mov esp, ebp
pop ebp
ret 0xc