Function at 0x505fd0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59da98
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
cmp dword [0x5fe0ac], ebx
je 0x5060cf
push 0x14
mov esi, 0xf
push str.Already_initialized_
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
call fcn.00402a36
push 0x11
push str.InitializeSockets
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.00402a36
push 0xb
push str.CSocketBase
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.00402a36
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
call fcn.00536700
mov edi, 0x10
add esp, 0xc
cmp dword [ebp - 0x38], edi
jb 0x506091
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x1c], edi
jb 0x5060ab
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x54], edi
jb 0x5060c5
mov edx, dword [ebp - 0x68]
push edx
call fcn.0053ed60
add esp, 4
mov eax, 1
jmp 0x506280
call fcn.0053ae10
mov ecx, eax
call fcn.0053ae00
mov esi, dword [ebp + 0xc]
cmp esi, eax
jbe 0x5061a9
push 0x11
mov esi, 0xf
push str.Too_many_threads_
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
call fcn.00402a36
push 0x11
push str.InitializeSockets
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 3
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.00402a36
push 0xb
push str.CSocketBase
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.00402a36
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x30]
push edx
mov byte [ebp - 4], 5
call fcn.00536700
mov edi, 0x10
add esp, 0xc
cmp dword [ebp - 0x1c], edi
jb 0x50616c
mov eax, dword [ebp - 0x30]
push eax
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp dword [ebp - 0x38], edi
jb 0x506186
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], edi
jb 0x50627e
mov edx, dword [ebp - 0x68]
push edx
call fcn.0053ed60
add esp, 4
jmp 0x50627e
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x506218
cmp esi, ebx
jne 0x506218
push str.Didnt_receive_any_threads_
lea ecx, [ebp - 0x4c]
call fcn.00403dfa
push str.InitializeSockets
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 6
call fcn.00403dfa
push str.CSocketBase
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.00403dfa
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x68]
push edx
mov byte [ebp - 4], 8
call fcn.00536700
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.0040583f
lea ecx, [ebp - 0x30]
call fcn.0040583f
lea ecx, [ebp - 0x4c]
call fcn.0040583f
jmp 0x50627e
lea eax, [ebp - 0x1f8]
push eax
push 0x202
mov dword [ebp - 4], 9
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
jne 0x50627e
mov eax, dword [ebp - 0x1f8]
cmp al, 2
jne 0x506278
shr eax, 8
cmp al, 2
jne 0x506278
mov dword [0x5fe0a8], edi
mov dword [0x5fe0b0], esi
call fcn.00530ca0
mov dword [0x5fe0b4], eax
call fcn.00530ca0
mov dword [0x5fe0bc], eax
mov eax, 1
mov dword [0x5fe0ac], eax
jmp 0x506280
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret