Function at 0x405fe5
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x41933a
call fcn.0040fbd0
sub esp, 0x28
mov eax, dword [0x4220b8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [0x422e4c]
mov esi, ecx
mov edi, 0x422e4c
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x422e4c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
add eax, 0x34
push eax
mov byte [ebp - 4], 1
call fcn.00406b43
mov eax, dword [0x422e4c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
mov eax, dword [0x422e4c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.00405e28
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00405e28
cmp dword [0x423b88], 1
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
jbe 0x4060f5
mov ebx, 0x423b90
push ebx
mov word [0x4236b8], 2
call edi
cmp eax, 0xffffffff
mov dword [0x4236bc], eax
jne 0x4060d0
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4060c4
or ebx, 0xffffffff
jmp 0x4061b2
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [0x4236bc], eax
xor eax, eax
mov ax, word [0x423b8c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
and dword [0x4236c0], 0
and dword [0x4236c4], 0
mov word [0x4236ba], ax
xor ebx, ebx
cmp dword [0x423b88], 2
mov eax, dword [ebp - 0x34]
mov word [ebp - 0x1e], ax
je 0x406140
push eax
mov word [ebp - 0x20], 2
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 0x24]
mov word [ebp - 0x1e], ax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x40613a
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x4060bc
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push ebx
push ebx
push dword [esi + 0x3c]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push dword [ebp - 0x2c]
mov dword [esi + 0x30], eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.00405690
mov edi, eax
mov eax, esi
call fcn.004054ef
push ebx
call fcn.00402ce1
test eax, eax
jne 0x4060bc
cmp edi, 1
je 0x4061af
cmp edi, ebx
je 0x40619f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40614e
push dword [ebp + 8]
mov eax, esi
call fcn.004055e2
test eax, eax
jne 0x406140
jmp 0x4061b2
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.0040252d
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040252d
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040252d
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.0040252d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ebx
pop ebx
call fcn.0040f3d9
leave
ret 8