Function at 0x412ec0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push ebp
push esi
push edi
push 6
call fcn.0041c42c
mov eax, dword [0x441ff4]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
test eax, eax
je 0x412f61
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x412efe
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x412f61
cmp eax, 3
jle 0x412f61
call ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x439c90]
test eax, eax
jge 0x412f1f
mov edx, dword [0x441fa0]
mov dword [0x439c90], edx
call fcn.0041c4b1
test eax, eax
je 0x412f53
mov eax, dword [0x439c90]
push 3
push eax
push 0x1f
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvs_arr_service.cpp
call fcn.0041c4e1
push str.8_4_6_40
push str.Array_Service__ver__s__initializing_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x442408
call fcn.0041fd37
test eax, eax
jne 0x413005
mov eax, dword [0x441ff4]
test eax, eax
je 0x412ff6
mov ecx, dword [0x441fd4]
mov eax, dword [ecx]
cmp eax, 1
je 0x412f99
mov edx, dword [0x441fdc]
cmp dword [edx], 0
jne 0x412ff6
cmp eax, 1
jle 0x412ff6
call ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x439c90]
test eax, eax
jge 0x412fb8
mov eax, dword [0x441fa0]
mov dword [0x439c90], eax
call fcn.0041c4b1
test eax, eax
je 0x412fe8
mov ecx, dword [0x439c90]
push 1
push ecx
push 0x24
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvs_arr_service.cpp
call fcn.0041c4e1
push str.failed_to_create_or_get_vpn_status_shared_memory_n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x190
ret 0x10
lea edx, [esp + 0xc]
push ebx
push edx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test ebx, ebx
je 0x4130af
mov eax, dword [0x441ff4]
test eax, eax
je 0x41315b
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x41304e
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x4130ce
cmp eax, 1
jle 0x4130ce
call ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x439c90]
test eax, eax
jge 0x41306f
mov edx, dword [0x441fa0]
mov dword [0x439c90], edx
call fcn.0041c4b1
test eax, eax
je 0x41309f
mov eax, dword [0x439c90]
push 1
push eax
push 0x31
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvs_arr_service.cpp
call fcn.0041c4e1
push ebx
push str.Array_Service:_WSAStartup_failed__error_d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4130ce
mov ecx, dword [sym.imp.MSVCRT.dll___argv]
mov eax, dword [sym.imp.MSVCRT.dll___argc]
mov edx, dword [ecx]
mov ecx, dword [eax]
push edx
push ecx
call fcn.0041b810
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [0x441ff4]
test eax, eax
je 0x41315b
mov edx, dword [0x441fd4]
mov eax, dword [edx]
cmp eax, 3
je 0x4130f8
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x41315b
cmp eax, 3
jle 0x41315b
call ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x439c90]
test eax, eax
jge 0x413119
mov edx, dword [0x441fa0]
mov dword [0x439c90], edx
call fcn.0041c4b1
test eax, eax
je 0x41314d
mov eax, dword [0x439c90]
push 3
push eax
push 0x3a
push str.C:_build_rel_sp_8_4_6_2_srcwindows_atpclient_arr_srvs_arr_service.cpp
call fcn.0041c4e1
push str.8_4_6_40
push str.Array_Service__ver__s__exiting_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0041c484
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x190
ret 0x10