Function at 0x423743
Capabilities:
Check for time delay via gettickcount
Get hostname
Resolve dns
Set socket configuration

Disassembly:
push ebp
sub esp, 0x90
lea ebp, [esp - 4]
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x90], eax
push 0x28
mov eax, 0x431ace
call fcn.00425cc9
mov esi, 0x44bcfc
push esi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
push 0x10
lea eax, [ebp]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 2
pop eax
lea edi, [ebx + 0x20]
push edi
mov word [ebp], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp + 4], eax
cmp eax, 0xffffffff
jne 0x4238f3
push 0x7f
lea eax, [ebp + 0x11]
push 0
push eax
mov byte [ebp + 0x10], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x80
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4237f9
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.00425cba
add ebp, 0x94
leave
ret
push edi
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
mov esi, 0x44bd14
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00422d63
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push esi
push dword [0x44bd2c]
lea ecx, [ebp - 0x1c]
call fcn.00421898
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042091e
test al, al
jne 0x423880
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00420a65
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
sub esi, ecx
cmp esi, 0xea60
jbe 0x42387d
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x14]
mov ecx, 0x44bd14
push eax
call fcn.00422ad4
jmp 0x423880
mov dword [ebp + 4], eax
cmp dword [ebp + 4], 0xffffffff
jne 0x4238f3
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x42389b
push 0x44bcfc
jmp 0x4237ce
mov esi, eax
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x18]
push 4
push dword [eax]
lea eax, [ebp + 4]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 4]
mov edi, eax
lea eax, [ebx + 0x20]
push eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x44bd14
mov byte [ebp - 4], 2
call fcn.0042341e
mov dword [eax], edi
lea ecx, [ebp - 0x30]
mov dword [eax + 4], esi
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
movzx eax, word [ebx + 0xe8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp + 2], ax
lea edi, [ebx + 0xc]
lea esi, [ebp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push dword [ebx + 8]
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x423936
push 0x44bcfc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4237d6
push 4
lea ecx, [ebx + 4]
push ecx
push 0x1005
push 0xffff
push eax
mov dword [ecx], 0x7d0
call dword [sym.imp.WS2_32.dll_setsockopt]
xor esi, esi
inc esi
jmp 0x423924