Function at 0x401580
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406b76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, 0xf
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ebx
mov byte [esi + 0x20], bl
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ebx
mov byte [esi + 0x58], bl
mov dword [esi + 0x88], eax
mov dword [esi + 0x84], ebx
mov byte [esi + 0x74], bl
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa0], ebx
mov byte [esi + 0x90], bl
mov byte [ebp - 4], 0xb
push 0xc
mov dword [esi + 0xb0], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x401779
mov dword [esi + 0xac], eax
mov dword [eax], eax
mov eax, dword [esi + 0xac]
mov dword [eax + 4], eax
lea eax, [ebp + 0x98]
push eax
or eax, 0xffffffff
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 0xc
call fcn.004039c0
lea ecx, [ebp + 0x28]
push ecx
or eax, 0xffffffff
lea ecx, [esi + 0x20]
mov dword [esi], 0x19
call fcn.004039c0
lea edx, [ebp + 0x44]
push edx
or eax, 0xffffffff
lea ecx, [esi + 0x3c]
call fcn.004039c0
lea eax, [ebp + 0x60]
push eax
or eax, 0xffffffff
lea ecx, [esi + 0x58]
call fcn.004039c0
lea ecx, [ebp + 0x7c]
push ecx
or eax, 0xffffffff
lea ecx, [esi + 0x74]
call fcn.004039c0
lea edx, [ebp + 0xc]
push edx
or eax, 0xffffffff
lea ecx, [esi + 4]
call fcn.004039c0
lea eax, [ebp - 0x1b4]
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, 0x10
mov dword [esi + 0x4c0], ebx
cmp dword [ebp + 0x20], edi
jb 0x4016ba
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], edi
jb 0x4016d9
mov edx, dword [ebp + 0x28]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp + 0x3c], 0xf
mov dword [ebp + 0x38], ebx
mov byte [ebp + 0x28], bl
cmp dword [ebp + 0x58], edi
jb 0x4016f8
mov eax, dword [ebp + 0x44]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp + 0x58], 0xf
mov dword [ebp + 0x54], ebx
mov byte [ebp + 0x44], bl
cmp dword [ebp + 0x74], edi
jb 0x401717
mov ecx, dword [ebp + 0x60]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp + 0x74], 0xf
mov dword [ebp + 0x70], ebx
mov byte [ebp + 0x60], bl
cmp dword [ebp + 0x90], edi
jb 0x401739
mov edx, dword [ebp + 0x7c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp + 0x90], 0xf
mov dword [ebp + 0x8c], ebx
mov byte [ebp + 0x7c], bl
cmp dword [ebp + 0xac], edi
jb 0x401764
mov eax, dword [ebp + 0x98]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xac
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x407d40
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
int3