Function at 0x40afd0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4879f2
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4b5320]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x4b5320]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov ebx, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x40b026
or eax, 0xffffffff
jmp 0x40b29e
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [esp + 0xdc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0x30]
call fcn.0040acf0
cmp dword [esp + 0x44], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x40b07e
push dword [esp + 0x30]
call esi
add esp, 4
call fcn.0042f250
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x498014
mov word [ecx], ax
call fcn.00406190
sub esp, 0x18
mov dword [esp + 0x2b0], 0
mov ecx, esp
xor eax, eax
mov dword [esp + 0x44], ecx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
push 0x498014
mov byte [esp + 0x2b4], 1
call fcn.0040f6f0
mov byte [esp + 0x2b0], 0
push ecx
mov dword [esp + 0x2b4], 0xffffffff
call fcn.00425050
add esp, 0x34
lea eax, [esp + 0x4c]
mov ecx, 0x4b96d0
push eax
call fcn.0040f2a0
mov edi, eax
lea eax, [esp + 0x30]
mov dword [esp + 0x280], 2
push eax
mov ecx, 0x4b96d0
call fcn.0040f2a0
mov byte [esp + 0x280], 3
cmp dword [edi + 0x14], 8
jb 0x40b13a
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x40b142
mov eax, dword [eax]
sub esp, 8
mov edx, eax
mov ecx, ebx
push edi
call fcn.0040f340
add esp, 0xc
cmp dword [esp + 0x44], 8
jb 0x40b162
push dword [esp + 0x30]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x280], 0xffffffff
cmp dword [esp + 0x60], 8
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
jb 0x40b194
push dword [esp + 0x4c]
call esi
add esp, 4
push 0x26
xor eax, eax
mov dword [esp + 0x30], 7
push str.bbbbbbbb_B96F_47DF_85B8_216F60F1B62D
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.00406190
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x284], 4
push 1
push eax
call fcn.00434b40
add esp, 0xc
mov dword [esp + 0x280], 0xffffffff
cmp dword [esp + 0x2c], 8
mov edi, eax
jb 0x40b1f4
push dword [esp + 0x18]
call esi
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
test edi, edi
jne 0x40b225
push str.ldad__exist
push 0x2b
push str.mainFrame
call fcn.0042f1b0
add esp, 0xc
jmp 0x40b29c
push str.ldad__init_application...
push 0x30
push str.mainFrame
call fcn.0042f1b0
add esp, 0xc
lea eax, [esp + 0x64]
push 0x74
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x64], 0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x68], 0
call fcn.004332d0
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x284], 5
call fcn.0040b2e0
mov dword [0x4b5380], 0xffffffff
call fcn.0042f270
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x6c]
call fcn.00403fc0
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00485d3c
mov esp, ebp
pop ebp
ret