Function at 0x40e790
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
mov ebp, ecx
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp + 0xf1c], eax
jne 0x40e7fd
cmp byte [esi], 0
jne 0x40e7bf
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov eax, dword [esp + 0x58]
push eax
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x40e7e6
cmp edi, 0x7d0
jg 0x40e9b1
push edi
call ebx
add edi, 0x3e8
test esi, esi
je 0x40e7c7
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp + 0xf1c], eax
mov eax, dword [ebp + 0xf64]
lea esi, [ebp + 0xf40]
mov ecx, eax
mov edx, eax
shr ecx, 0x18
and cl, 1
mov ebx, eax
mov byte [esp + 0x12], cl
mov ecx, eax
shr ecx, 0x17
and cl, 1
mov edi, eax
mov byte [esp + 0x13], cl
mov ecx, eax
shr edx, 0x16
shr ecx, 0x15
shr ebx, 0x10
and dl, 1
and cl, 1
and bl, 1
mov word [esp + 0x14], 0x40
mov byte [esp + 0x11], bl
mov ebx, 0
setne bl
shr edi, 0x11
and edi, 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov edi, eax
shr eax, 0x13
and eax, 1
xor ebx, ebx
shr edi, 0x12
mov dword [esp + 0x24], eax
and edi, 1
xor eax, eax
cmp cl, bl
setne al
mov dword [esp + 0x28], eax
mov al, byte [esp + 0x11]
cmp cl, bl
mov word [esp + 0x16], 0xc354
mov dword [esp + 0x20], edi
jne 0x40e892
cmp al, bl
je 0x40e89d
cmp dl, bl
je 0x40e89d
mov edx, 1
jmp 0x40e89f
xor edx, edx
cmp cl, bl
mov word [esp + 0x2c], dx
jne 0x40e8ac
cmp al, bl
je 0x40e8b9
cmp byte [esp + 0x12], bl
je 0x40e8b9
mov edx, 1
jmp 0x40e8bb
xor edx, edx
cmp cl, bl
mov byte [esp + 0x2f], dl
jne 0x40e8c7
cmp al, bl
je 0x40e8d4
cmp byte [esp + 0x13], bl
je 0x40e8d4
mov eax, 1
jmp 0x40e8d6
xor eax, eax
push ebx
mov byte [esp + 0x32], al
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
cmp esi, ebx
mov dword [esp + 0x30], eax
mov ecx, 8
je 0x40e8f9
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
jmp 0x40e901
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
cmp dword [ebp + 0xf3c], ebx
jne 0x40e96d
push 0x40
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40e95a
push ebx
mov word [esi], 0x40
mov word [esi + 2], 0xc354
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov word [esi + 0x18], bx
mov byte [esi + 0x1b], bl
mov byte [esi + 0x1a], bl
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov dword [esi + 0x1c], eax
mov ecx, 8
xor eax, eax
lea edi, [esi + 0x20]
rep stosd dword es:[edi], eax
mov edi, esi
jmp 0x40e95c
xor edi, edi
mov ecx, 0x10
lea esi, [esp + 0x14]
mov dword [ebp + 0xf3c], edi
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
call fcn.0040e9e0
mov dl, al
mov eax, dword [ebp + 0xf34]
cmp eax, ebx
je 0x40e9ad
mov edi, dword [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp + 0xc1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x58], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dl, bl
jne 0x40e9bd
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44
ret 4
push ebx
push ebx
push ebx
push ebx
push ebp
push 0x40f120
call sub.MFC42.DLL_AfxBeginThread
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x44
ret 4