Function at 0x478a90
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571888
mov eax, dword fs:[0]
push eax
sub esp, 0x1e0
mov eax, dword [0x5f7448]
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
cmp dword [0x601f60], 0
je 0x478c00
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
push 0x14
push str.Already_initialized_
lea ecx, [ebp - 0x44]
call fcn.004059b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push 0x11
push str.InitializeSockets
lea ecx, [ebp - 0x2c]
call fcn.004059b0
mov byte [ebp - 4], 1
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
push 0xb
push str.CSocketBase
lea ecx, [ebp - 0x5c]
call fcn.004059b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0049d460
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48], 0x10
jb 0x478b93
push dword [ebp - 0x5c]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
jb 0x478bba
push dword [ebp - 0x2c]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x30], 0x10
jb 0x478be4
push dword [ebp - 0x44]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov eax, 1
jmp 0x478dd2
call fcn.004a28f0
mov ecx, eax
call fcn.004a2960
mov esi, dword [ebp + 0xc]
cmp esi, eax
jbe 0x478cde
push str.Too_many_threads_
lea ecx, [ebp - 0x5c]
call fcn.00405090
mov dword [ebp - 4], 3
push str.InitializeSockets
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 4
push str.CSocketBase
lea ecx, [ebp - 0x44]
call fcn.00405090
mov byte [ebp - 4], 5
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0049d460
add esp, 0xc
mov byte [ebp - 4], 4
cmp dword [ebp - 0x30], 0x10
jb 0x478c76
push dword [ebp - 0x44]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0x10
jb 0x478c9d
push dword [ebp - 0x2c]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x48], 0x10
jb 0x478cc7
push dword [ebp - 0x5c]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jmp 0x478dd0
mov edi, dword [ebp + 8]
test edi, edi
je 0x478d5c
test esi, esi
jne 0x478d5c
push str.Didnt_receive_any_threads_
lea ecx, [ebp - 0x5c]
call fcn.00405090
mov dword [ebp - 4], 6
push str.InitializeSockets
lea ecx, [ebp - 0x2c]
call fcn.00405090
mov byte [ebp - 4], 7
push str.CSocketBase
lea ecx, [ebp - 0x44]
call fcn.00405090
mov byte [ebp - 4], 8
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0049d460
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x44]
call fcn.004050f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.004050f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004050f0
jmp 0x478dd0
mov dword [ebp - 4], 9
lea eax, [ebp - 0x1ec]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x478dd0
mov eax, dword [ebp - 0x1ec]
cmp al, 2
jne 0x478dbb
shr eax, 8
cmp al, 2
jne 0x478dbb
mov dword [0x601f68], edi
mov dword [0x601f6c], esi
call fcn.0049be30
mov dword [0x601f5c], eax
call fcn.0049be30
mov dword [0x601f70], eax
mov dword [0x601f60], 1
mov eax, 1
jmp 0x478dd2
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x478dd0
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.004adbd4
mov esp, ebp
pop ebp
ret