Function at 0x405ac0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x4ff004]
xor eax, esp
mov dword [esp + 0x1a8], eax
cmp dword [0x500b60], 0
push ebx
push esi
mov ebx, edx
mov dword [esp + 0xc], ecx
push edi
mov dword [esp + 0x14], ebx
je 0x405b30
test ebx, ebx
je 0x405b16
push 0xa84
push str.yapi
push str.Api_already_started
push str._s___s:_d_
push 0x100
push ebx
call fcn.0041c830
add esp, 0x18
mov eax, 0xfffffffa
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
push 0x4671d0
call fcn.00449b4f
fstp qword [esp + 0x1c]
movsd xmm0, qword [esp + 0x1c]
add esp, 4
ucomisd xmm0, qword [0x4fc848]
lahf
test ah, 0x44
jnp 0x405b95
test ebx, ebx
je 0x405b7b
push 0xaac
push str.yapi
push str.Invalid_architecture
push str._s___s:_d_
push 0x100
push ebx
call fcn.0041c830
add esp, 0x18
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
push 0x44d0
call fcn.00449be3
add esp, 4
mov ebx, eax
push 0x381c
push 0
push ebx
call fcn.00443620
add esp, 0xc
lea ecx, [ebx + 0x3820]
push 0xcb0
push 0
push ecx
call fcn.00443620
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [ebx + 0x381c], eax
push 0x18
call fcn.00449be3
mov esi, eax
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push esi
movq qword [esi + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x18
mov dword [ebx], esi
call fcn.00449be3
mov esi, eax
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push esi
movq qword [esi + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x18
mov dword [ebx + 4], esi
call fcn.00449be3
mov esi, eax
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push esi
movq qword [esi + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x18
mov dword [ebx + 0x3818], esi
call fcn.00449be3
mov esi, eax
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push esi
movq qword [esi + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x18
mov dword [ebx + 0x3830], esi
call fcn.00449be3
mov esi, eax
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push esi
movq qword [esi + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x18
mov dword [ebx + 0x3cc8], esi
call fcn.00449be3
mov esi, eax
add esp, 4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push esi
movq qword [esi + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x18
mov dword [ebx + 0x3ccc], esi
call fcn.00449be3
add esp, 4
mov esi, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
push esi
movq qword [esi + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebx + 0x10], esi
call fcn.00413240
mov esi, dword [esp + 0x14]
lea edi, [ebx + 0x417c]
or eax, 0xffffffff
mov ecx, 0x80
test byte [esp + 0x10], 1
rep stosd dword es:[edi], eax
mov dword [ebx + 0x3824], 0
mov dword [ebx + 0x3820], 1
je 0x405d30
mov edx, esi
mov ecx, ebx
call fcn.0040c920
mov edi, eax
test edi, edi
jns 0x405d30
mov ecx, ebx
call fcn.004059d0
push ebx
call fcn.004460f9
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x405d94
test esi, esi
je 0x405d6a
push 0x193
push str.ytcp
push str.Unable_to_start_Windows_Socket
push str._s___s:_d_
push 0x100
push esi
call fcn.0041c830
add esp, 0x18
mov ecx, ebx
call fcn.004059d0
push ebx
call fcn.004460f9
add esp, 4
mov eax, 0xfffffff8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.004423fe
mov esp, ebp
pop ebp
ret
push 0x200
push 0
push 0xd77840
call fcn.00443620
add esp, 0xc
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test byte [esp + 0x10], 2
mov dword [ebx + 8], eax
je 0x405de8
push esi
lea ecx, [ebx + 0x3cd0]
call fcn.0041c4b0
add esp, 4
test eax, eax
jns 0x405de8
call fcn.004161a0
mov eax, dword [0x500b60]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405d6a
mov ecx, dword [esp + 0x1b4]
xor eax, eax
pop edi
pop esi
mov dword [0x500b60], ebx
pop ebx
xor ecx, esp
call fcn.004423fe
mov esp, ebp
pop ebp
ret