Function at 0x406442
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ec267
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x52e030]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push esi
push edi
mov eax, dword [0x52e030]
xor eax, esp
push eax
lea eax, [esp + 0x298]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push eax
lea esi, [esp + 0xc8]
call fcn.00402b82
xor ebx, ebx
mov dword [esp + 0x2a0], ebx
cmp dword [esp + 0xd4], ebx
jne 0x4064e4
or dword [esp + 0x2a0], 0xffffffff
push 1
xor edi, edi
lea esi, [esp + 0xc8]
call fcn.00402efe
mov eax, ebx
mov ecx, dword [esp + 0x298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, esp
call fcn.00475360
mov esp, ebp
pop ebp
ret 0x10
call fcn.0045c06f
push 1
push 2
push 0x15
call dword [sym.imp.urlmon.dll_CoInternetSetFeatureEnabled]
lea eax, [esp + 0x20]
push eax
call fcn.004308e7
mov byte [esp + 0x2a0], 1
call fcn.00406240
push 0x190
mov byte [esp + 0x1b], al
lea eax, [esp + 0x100]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0xfc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp byte [esp + 0x17], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
je 0x406593
push str.Ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x406593
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x506124
push edi
call esi
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x40657b
push 0x405fb1
call fcn.00459044
push str.GetAddrInfoExW
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x406593
push 0x4060b7
call fcn.00459044
push str.MUTEX_KUGOU_EXPLORER_DESTROY
lea esi, [esp + 0x58]
call fcn.00402b82
mov byte [esp + 0x2a0], 2
push str.MUTEX_KUGOU_EXPLORER_CREATE
lea esi, [esp + 0xe4]
call fcn.00402b82
mov byte [esp + 0x2a0], 3
push str.MUTEX_KUGOU_EXPLORER
lea esi, [esp + 0xac]
call fcn.00402b82
mov byte [esp + 0x2a0], 4
lea eax, [esp + 0x54]
push eax
mov eax, esi
push eax
lea ecx, [esp + 0xe8]
lea esi, [esp + 0x80]
call fcn.0045867d
mov byte [esp + 0x2a0], 6
push 1
xor edi, edi
lea esi, [esp + 0xac]
call fcn.00402efe
mov byte [esp + 0x2a0], 7
push 1
lea esi, [esp + 0xe4]
call fcn.00402efe
mov byte [esp + 0x2a0], 8
push 1
lea esi, [esp + 0x58]
call fcn.00402efe
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0040f06a
mov byte [esp + 0x2a0], 9
lea ecx, [esp + 0x78]
call fcn.004587a3
test al, al
jne 0x40666c
push dword [esp + 0x88]
lea eax, [esp + 0x7c]
push eax
call fcn.00458ba1
lea eax, [esp + 0x54]
push eax
call fcn.00410469
mov esi, eax
mov byte [esp + 0x2a0], 8
lea eax, [esp + 0x54]
push eax
call fcn.0040f0f0
lea ecx, [esp + 0x78]
call fcn.00458b5d
cmp byte [esp + 0x17], 0
je 0x4066b4
cmp dword [esp + 0x18], 0
je 0x4066aa
push dword [esp + 0x18]
call fcn.004590d6
test ebx, ebx
je 0x4066b4
push ebx
call fcn.004590d6
cmp dword [esp + 0x1c], 0
jne 0x4066c1
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov byte [esp + 0x2a0], 1
lea eax, [esp + 0x78]
push eax
call fcn.0045875d
mov byte [esp + 0x2a0], 0
lea eax, [esp + 0x20]
push eax
call fcn.00430981
mov ebx, esi
jmp 0x4064a4