Function at 0x4016c0
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40aba0
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x100]
test eax, eax
je 0x4016fc
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
lea eax, [esi + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CStringArray::CStringArray
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40178d
mov ecx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int___std::wcout]
push 0x40d1b0
push ecx
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::operator___class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int_____unsigned_short_int_const__]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______cdecl_std::endl_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int____]
add esp, 0xc
lea edi, [esi + 0xbc]
mov ecx, edi
push 2
push 0
call fcn.00408120
test eax, eax
jne 0x40177a
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040a83c
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
lea edx, [esp + 0x10]
mov ecx, edi
push edx
push 5
push 0
push eax
call fcn.00408050
jmp 0x4017ee
lea eax, [esp + 0x20]
lea ecx, [esi + 0xbc]
push eax
call fcn.00408280
test al, al
jne 0x4017d9
mov ecx, dword [esp + 0x28]
push ecx
push 0x40d18c
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040a83c
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov eax, dword [esi + 0xc4]
push eax
push 0x40d170
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
push ebx
call dword [sym.imp.SockSv.dll_int___cdecl_SockSv_Init_void_]
push 0
push 0
push esi
push 0x401510
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
lea edi, [esi + 0x30]
lea edx, [esp + 0xc]
mov ecx, edi
push edx
call fcn.00406e70
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esi + 0x5c]
mov byte [esp + 0x48], 1
call fcn.00405e40
test eax, eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 0
setl bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
pop ebx
je 0x401893
lea edx, [esp + 8]
mov ecx, edi
push edx
call fcn.00406e70
mov eax, dword [eax]
push eax
push 0x40d150
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040a83c
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
lea ecx, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.00406e70
mov edx, dword [eax]
push ebp
push edx
push 0x40d130
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 0xc
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esi + 0x104], 0
mov dword [esi + 0x100], 1
mov dword [esp + 0x40], 0xffffffff
call fcn.0040a83c
mov ecx, dword [esp + 0x38]
pop ebp
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret