Function at 0x411780
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x466806
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x486ed0]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], 0
call fcn.00460f3e
mov ecx, dword [eax + 4]
call fcn.0045a976
mov cl, byte [esp + 0x2c]
mov byte [esp + 0x24], 1
mov byte [ebp + 0x1d13], cl
lea ecx, [ebp + 0x1dd8]
mov byte [ebp + 0x1d10], 0
mov byte [ebp + 0x1d11], 0
mov byte [ebp + 0x1d12], 0
mov byte [ebp + 0x1d7c], 1
call fcn.0045b1b4
mov ecx, ebp
call fcn.00419890
mov ebx, eax
test ebx, ebx
jne 0x41184e
mov edx, dword [esp + 0x2c]
push str.Must_select_a_user_name_before_connecting.
push edx
push ebp
call fcn.00412d50
add esp, 0xc
mov ecx, ebp
call fcn.00411d00
lea ecx, [ebp + 0x494]
call fcn.0045ae5c
mov byte [esp + 0x24], bl
call fcn.00460f3e
mov ecx, dword [eax + 4]
call fcn.0045a98b
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045b229
or eax, 0xffffffff
jmp 0x411cea
mov eax, dword [ebp + 0x21c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x147
push eax
call esi
test eax, eax
jge 0x4118bc
mov ecx, dword [esp + 0x2c]
push str.Must_select_a_server_before_connecting.
push ecx
push ebp
call fcn.00412d50
add esp, 0xc
mov ecx, ebp
call fcn.00411d00
lea ecx, [ebp + 0x200]
call fcn.0045ae5c
mov byte [esp + 0x24], 0
call fcn.00460f3e
mov ecx, dword [eax + 4]
call fcn.0045a98b
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045b229
mov eax, 0xfffffffe
jmp 0x411cea
mov edx, dword [ebp + 0x21c]
push 0
push eax
push 0x150
push edx
call esi
test eax, eax
mov dword [esp + 0x14], eax
jne 0x411927
mov eax, dword [esp + 0x2c]
push str.Must_select_a_server_before_connecting.
push eax
push ebp
call fcn.00412d50
add esp, 0xc
mov ecx, ebp
call fcn.00411d00
lea ecx, [ebp + 0x200]
call fcn.0045ae5c
mov byte [esp + 0x24], 0
call fcn.00460f3e
mov ecx, dword [eax + 4]
call fcn.0045a98b
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045b229
mov eax, 0xfffffffd
jmp 0x411cea
add eax, 4
lea ecx, [esp + 0x10]
push eax
call fcn.0045b362
push 0x2c
lea ecx, [esp + 0x14]
call fcn.0045b6f0
or edi, 0xffffffff
cmp eax, edi
jle 0x411994
mov ecx, dword [esp + 0x2c]
push str.Commas_are_not_allowed_in_IP_DNS_field.
push ecx
push ebp
call fcn.00412d50
add esp, 0xc
mov ecx, ebp
call fcn.00411d00
lea ecx, [ebp + 0x200]
call fcn.0045ae5c
mov byte [esp + 0x24], 0
call fcn.00460f3e
mov ecx, dword [eax + 4]
call fcn.0045a98b
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edi
call fcn.0045b229
mov eax, 0xfffffffc
jmp 0x411cea
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov esi, dword [edx - 8]
test esi, esi
jle 0x4119b5
mov al, byte [ecx + edx]
cmp al, 0x2e
je 0x4119b0
cmp al, 0x30
jl 0x4119ef
cmp al, 0x39
jg 0x4119ef
inc ecx
cmp ecx, esi
jl 0x4119a1
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, ebp
mov esi, eax
call fcn.004128d0
push 0x3b8
call fcn.0045af6a
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x24], 2
je 0x411a4d
mov ecx, eax
call fcn.00422210
jmp 0x411a4f
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x411a41
mov ebx, dword [esp + 0x2c]
push str.Unable_to_resolve_the_specified_servers_DNS_Hostname.
push ebx
push ebp
call fcn.00412d50
add esp, 0xc
test bl, bl
je 0x411a18
mov ecx, ebp
call fcn.00411d00
mov byte [esp + 0x24], 0
call fcn.00460f3e
mov ecx, dword [eax + 4]
call fcn.0045a98b
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edi
call fcn.0045b229
mov eax, 0xfffffffb
jmp 0x411cea
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
jmp 0x4119bc
xor eax, eax
push 0
push 0xbd3
push ebp
mov ecx, eax
mov byte [esp + 0x30], 1
mov dword [ebp + 0x5f4], eax
call fcn.00422770
mov ecx, dword [ebp + 0x5f4]
push ebx
add ecx, 0x90
call fcn.0045b362
lea edi, [ebp + 0x5f0]
push edi
push 0
call fcn.004228f0
add esp, 8
test al, al
jne 0x411aff
mov esi, dword [ebp + 0x5f4]
test esi, esi
je 0x411aaa
mov ecx, esi
call fcn.00422390
push esi
call fcn.0045af93
add esp, 4
mov ebx, dword [esp + 0x2c]
push str.Unable_to_create_TCP_IP_stream.
push ebx
push ebp
mov dword [ebp + 0x5f4], 0
call fcn.00412d50
add esp, 0xc
test bl, bl
je 0x411ad2
mov ecx, ebp
call fcn.00411d00
mov byte [esp + 0x24], 0
call fcn.00460f3e
mov ecx, dword [eax + 4]
call fcn.0045a98b
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045b229
mov eax, 0xfffffffa
jmp 0x411cea
mov ecx, dword [esp + 0x14]
mov eax, dword [edi]
mov dx, word [ecx + 8]
mov ecx, dword [ebp + 0x5f4]
push edx
push eax
push esi
call fcn.00422990
test al, al
jne 0x411b88
mov ecx, dword [edi]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esp + 0x2c]
push str.Unable_to_connect_to_server.
push edx
push ebp
call fcn.00412d50
mov edi, dword [ebp + 0x5f4]
add esp, 0xc
test edi, edi
je 0x411b51
mov ecx, edi
call fcn.00422390
push edi
call fcn.0045af93
add esp, 4
mov dword [ebp + 0x5f4], 0
mov byte [esp + 0x24], 0
call fcn.00460f3e
mov ecx, dword [eax + 4]
call fcn.0045a98b
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045b229
mov eax, 0xfffffff9
jmp 0x411cea
mov dword [ebp + 0x1dac], esi
mov esi, dword [esp + 0x14]
mov ax, word [esi + 8]
mov word [ebp + 0x1db0], ax
mov edx, dword [ebx + 0x28]
xor eax, eax
test edx, edx
je 0x411bc0
mov ecx, dword [ebx + 0x2c]
sub ecx, edx
sar ecx, 2
cmp eax, ecx
jae 0x411bc0
mov ecx, dword [ebx + 0x28]
cmp esi, dword [ecx + eax*4]
je 0x411bbd
inc eax
jmp 0x411ba2
mov dword [ebx + 0x20], eax
push 0x482ac4
lea ecx, [ebp + 0x50c]
call fcn.0045acf2
push 0
lea ecx, [ebp + 0x494]
call fcn.0045ae35
push 0
lea ecx, [ebp + 0x200]
call fcn.0045ae35
push 0
lea ecx, [ebp + 0x110]
call fcn.0045ae35
mov ecx, dword [ebp + 0x5f4]
call fcn.00422de0
push 8
call fcn.0045af6a
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x24], 3
je 0x411c26
mov ecx, eax
call fcn.004239d0
mov dword [esp + 0x2c], eax
jmp 0x411c2e
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x2c]
push 0
mov byte [esp + 0x28], 1
call fcn.00423a90
mov edi, dword [0x48b00c]
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00445304
lea esi, [ebx + 0x14]
push esi
push 0x1f
call fcn.00423d70
lea edi, [ebx + 0x34]
mov byte [ebx + 0x33], 0
push edi
push 0x1f
call fcn.00423d70
mov al, byte [esi]
add esp, 0x14
test al, 1
mov byte [ebx + 0x53], 0
je 0x411c9e
push esi
mov edi, esi
jmp 0x411c9f
push edi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [ebp + 0x5f4]
call fcn.00422720
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [ebp + 0x5f4]
call fcn.00422b50
mov byte [esp + 0x24], 0
call fcn.00460f3e
mov ecx, dword [eax + 4]
call fcn.0045a98b
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045b229
xor eax, eax
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4