Function at 0x40bfb0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x43e008]
xor eax, esp
mov dword [esp + 0x1cc], eax
mov eax, dword [0x442dd8]
xorps xmm0, xmm0
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x20], ecx
xor ebp, ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ebp
mov ebx, edx
mov dword [esp + 0x10], ebp
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x40], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 1
push edi
test eax, eax
jne 0x40c01f
mov edx, 0x442dcc
xor ecx, ecx
call fcn.0040abc0
mov dword [0x442dd8], eax
lea ecx, [esp + 0x14]
cmp dword [0x442dcc], esi
je 0x40c03d
push 0
push ecx
lea ecx, [esp + 0x30]
push ecx
push 0x436404
push ebx
call eax
jmp 0x40c04b
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x436404
push ebx
call eax
mov edi, eax
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test edi, edi
je 0x40c105
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x276d
je 0x40c070
mov ebp, eax
jmp 0x40c205
mov edi, dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0x48]
push eax
push 0x202
call edi
test eax, eax
je 0x40c09d
lea eax, [esp + 0x48]
push eax
push 0x101
call edi
test eax, eax
je 0x40c09d
mov ebp, eax
jmp 0x40c205
mov eax, dword [0x442dd8]
mov dword [esp + 0x20], 1
test eax, eax
jne 0x40c0bf
mov edx, 0x442dcc
xor ecx, ecx
call fcn.0040abc0
mov dword [0x442dd8], eax
lea ecx, [esp + 0x14]
cmp dword [0x442dcc], esi
je 0x40c0dd
push 0
push ecx
lea ecx, [esp + 0x30]
push ecx
push 0x436404
push ebx
call eax
jmp 0x40c0eb
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x436404
push ebx
call eax
mov edi, eax
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test edi, edi
je 0x40c105
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
jmp 0x40c205
mov ecx, dword [esp + 0x14]
xor edi, edi
test ecx, ecx
je 0x40c128
nop
mov eax, dword [ecx + 0x18]
movzx eax, word [eax]
cmp eax, 2
je 0x40c120
cmp eax, 0x17
jne 0x40c121
inc edi
mov ecx, dword [ecx + 0x1c]
test ecx, ecx
jne 0x40c110
push 0x4164e4
push 8
call fcn.00414d67
mov esi, eax
add esp, 8
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x40c149
lea ebp, [eax + 8]
jmp 0x40c205
xor ebx, ebx
mov dword [esi], edi
mov ecx, 0x401
mov dword [esi + 4], ebp
mov eax, edi
mul ecx
push 0x4164e4
seto bl
xor ecx, ecx
neg ebx
or eax, ebx
mov ebx, 2
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00414dc1
mov ecx, eax
add esp, 8
mov dword [esi + 4], ecx
test ecx, ecx
jne 0x40c18c
lea ebp, [ebx + 6]
jmp 0x40c20a
imul eax, edi, 0x802
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov esi, dword [esp + 0x20]
add esp, 0xc
xor ebx, ebx
test esi, esi
je 0x40c1f9
xor ebp, ebp
nop word [eax + eax]
cmp ebx, edi
jae 0x40c1f5
mov ecx, dword [esi + 0x18]
movzx eax, word [ecx]
sub eax, 2
je 0x40c1c4
sub eax, 0x15
jne 0x40c1ee
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x10]
push 0x802
mov eax, dword [eax + 4]
add eax, ebp
push eax
call fcn.0040c520
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40c276
inc ebx
add ebp, 0x802
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x40c1b0
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
xor esi, esi
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov ebx, 2
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40c22f
mov eax, dword [0x442de0]
test eax, eax
jne 0x40c22c
mov edx, 0x442ddc
mov ecx, ebx
call fcn.0040abc0
mov dword [0x442de0], eax
push edi
call eax
test esi, esi
je 0x40c24e
mov eax, dword [esi + 4]
test eax, eax
je 0x40c243
push eax
call fcn.004145c7
add esp, 4
push 8
push esi
call fcn.0041482a
add esp, 8
cmp dword [esp + 0x20], 0
je 0x40c25b
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1dc]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004145b4
add esp, 0x1d4
ret
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
jmp 0x40c205