Function at 0x40e6df
Capabilities:
Create thread
Set socket configuration

Disassembly:
mov eax, 0x41d0f1
call fcn.0041c284
sub esp, 0x228
push ebx
push esi
push edi
push 0x426a58
push 7
call fcn.0040148c
push 0x304
mov ebx, 0x4289d0
push 0
push ebx
call sub.MSVCRT.dll_memset
mov edi, 0x429000
add esp, 0x14
mov ecx, edi
call fcn.004194a0
add eax, 0x6b8
lea ecx, [ebp - 0x10]
push eax
call fcn.0040f465
mov eax, dword [eax]
and dword [ebp - 4], 0
test eax, eax
je 0x40e73b
mov eax, dword [eax]
jmp 0x40e73d
xor eax, eax
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
push eax
push 0x428bd0
call esi
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40e75d
call fcn.0040f500
mov ecx, edi
call fcn.004194a0
add eax, 0x208
lea ecx, [ebp - 0x10]
push eax
call fcn.0040f465
mov eax, dword [eax]
mov dword [ebp - 4], 1
test eax, eax
je 0x40e783
mov eax, dword [eax]
jmp 0x40e785
xor eax, eax
push eax
push ebx
call esi
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x40e79d
call fcn.0040f500
mov ecx, edi
call fcn.004194a0
add eax, 0x26c
lea ecx, [ebp - 0x10]
push eax
call fcn.0040f465
mov eax, dword [eax]
mov dword [ebp - 4], 2
cmp eax, ebx
je 0x40e7c3
mov eax, dword [eax]
jmp 0x40e7c5
xor eax, eax
push eax
push 0x428dd8
call esi
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x40e7df
call fcn.0040f500
cmp byte [ebp + 8], 0
jne 0x40e901
mov al, byte [ebp + 0xb]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x24], al
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ebx, dword [0x428fec]
mov dword [ebp - 4], 3
cmp ebx, dword [0x428ff0]
mov dword [ebp - 0x10], ebx
je 0x40e8d9
mov esi, dword [sym.imp.MSVCRT.dll_free]
add ebx, 0x36
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 0x7f
mov byte [ebp - 4], 4
and word [ebp - 0x234], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x232]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebx - 0x32]
push eax
call fcn.0040108a
push ebx
mov edi, eax
call fcn.0040108a
pop ecx
mov dword [ebp - 0x14], eax
pop ecx
push eax
push edi
push 0x426a4c
lea eax, [ebp - 0x234]
push 0x100
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x18
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
push edi
call esi
push dword [ebp - 0x14]
call esi
pop ecx
lea eax, [ebp - 0x34]
pop ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.0040f3ed
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
add dword [ebp - 0x10], 0x68
mov eax, dword [ebp - 0x10]
add ebx, 0x68
cmp eax, dword [0x428ff0]
jne 0x40e81d
mov edi, 0x429000
sub esp, 0x10
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0040f385
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0041a9a3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00409944
mov ebx, dword [0x428fec]
mov esi, 0x428690
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp byte [ebp + 8], 0
push esi
jne 0x40e92b
add ebx, 4
push ebx
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40e940
jmp 0x40e96e
lea eax, [ebx + 4]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x40e940
mov dword [ebx], 1
push 0x4252bc
mov ecx, edi
call fcn.004194a0
add eax, 0x8fc
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x40e96e
push eax
push eax
push eax
push 0x40e97f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret