Function at 0x45c450
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
push esi
push edi
mov ebp, ecx
push ebx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp + 0xf1c], eax
jne 0x45c4b7
cmp byte [ebx], 0
jne 0x45c47f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x44
ret 4
xor edi, edi
push ebx
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x45c4a0
cmp edi, 0x7d0
jg 0x45c643
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x3e8
test esi, esi
je 0x45c481
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp + 0xf1c], edx
mov eax, dword [ebp + 0xf64]
lea esi, [ebp + 0xf40]
mov ecx, eax
mov edx, eax
shr ecx, 0x17
and cl, 1
mov ebx, 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 edi, eax
mov byte [esp + 0x12], 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
cmp cl, bl
mov word [esp + 0x14], 0x40
mov word [esp + 0x16], 0xc354
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], eax
jne 0x45c53e
cmp byte [esp + 0x12], bl
je 0x45c549
cmp dl, bl
je 0x45c549
mov eax, 1
jmp 0x45c54b
xor eax, eax
cmp cl, bl
mov word [esp + 0x2c], ax
jne 0x45c55a
cmp byte [esp + 0x12], bl
je 0x45c567
cmp byte [esp + 0x13], bl
je 0x45c567
mov eax, 1
jmp 0x45c569
xor eax, eax
push ebx
mov word [esp + 0x32], ax
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
cmp esi, ebx
mov dword [esp + 0x30], eax
mov ecx, 8
je 0x45c58d
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
jmp 0x45c595
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
cmp dword [ebp + 0xf3c], ebx
jne 0x45c5ff
push 0x40
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x45c5ec
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 word [esi + 0x1a], bx
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 0x45c5ee
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.0045c670
mov dl, al
mov eax, dword [ebp + 0xf34]
cmp eax, ebx
je 0x45c63f
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 0x45c64f
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 0x45cd70
call sub.MFC42.DLL_AfxBeginThread
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x44
ret 4