Function at 0x401203
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x409650
push 0xffffffffffffffff
push 0x40e3ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [esp + 0x234]
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp eax, ebx
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], ebx
je 0x4096b5
mov dword [esi], 0x4101c8
mov dword [esi + 8], 0x4101bc
mov dword [esi + 0x30], ebx
mov eax, dword [sym.imp.MSVCP60.dll_const_std::ios_base::vftable]
mov dword [esi + 0xc], eax
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esi + 0xc], ecx
mov dword [esp + 0x10], 1
mov dword [esp + 0x234], ebx
push 0x1dc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov dword [esp + 0x234], 1
je 0x4096e0
mov ecx, eax
call fcn.00401271
mov edi, eax
jmp 0x4096e2
xor edi, edi
push ebx
push ebx
push edi
mov ecx, esi
mov byte [esp + 0x240], bl
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
push ebx
push ebx
push ebx
push edi
lea ecx, [esi + 8]
mov dword [esp + 0x244], 3
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool__bool_]
mov edx, dword [esi]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_iostream_char__struct_std::char_traits_char__::vftable]
mov eax, dword [edx + 4]
mov dword [eax + esi], ecx
mov edx, dword [esi]
mov dword [esp + 0x234], 4
mov eax, dword [edx + 4]
mov dword [eax + esi], 0x4101b8
mov al, byte [0x412b34]
cmp al, bl
je 0x4098b9
lea ecx, [esp + 0x9c]
push ecx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
je 0x4098b3
mov dl, byte [esp + 0xf]
push ebp
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.Unable_to_initialise_Windows_sockets__WSAStartup_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4097b3
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, ecx
mov esi, str.Unable_to_initialise_Windows_sockets__WSAStartup_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [ecx + ebp], bl
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
push edx
mov byte [esp + 0x23c], 5
call fcn.004011e0
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srccommon_socket.cpp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x38], 0x5b
mov ebp, ecx
lea ecx, [esp + 0x3c]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40982b
mov edi, dword [esp + 0x3c]
mov ecx, ebp
mov eax, ecx
mov esi, str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srccommon_socket.cpp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x40], ebp
mov byte [ecx + ebp], bl
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x38]
push ebx
lea ecx, [esp + 0x74]
mov dword [esp + 0x70], edx
mov byte [esp + 0x74], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x38]
mov edx, dword [ecx]
lea ecx, [esp + 0x70]
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
lea ecx, [esp + 0x48]
mov byte [esp + 0x238], 8
push ecx
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea edx, [esp + 0x58]
lea ecx, [esp + 0x90]
push edx
mov byte [esp + 0x23c], 9
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [esp + 0x68]
push 0x410690
push eax
mov dword [esp + 0x70], 0x41009c
mov byte [esp + 0x240], 7
call sub.MSVCRT.dll__CxxThrowException
pop ebp
mov byte [0x412b34], bl
mov edx, dword [0x43e7a4]
mov eax, dword [esp + 0x23c]
inc edx
cmp eax, ebx
mov dword [0x43e7a4], edx
jl 0x4098d9
push eax
mov ecx, esi
call fcn.004010b4
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret 8