Function at 0x402530
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x3d4
push ebx
push ebp
push esi
push edi
push 0x44
mov ebx, ecx
push 0x40a664
push 0x40a650
mov dword [esp + 0x30], ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
cmp eax, 7
je 0x4029e0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd9]
mov byte [esp + 0xd8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xd8]
push 0x103
push eax
push str._SystemRoot__system32_netsh.exe
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x40267d
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x50]
lea edx, [esp + 0xd8]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edi, [esp + 0x1dd]
mov dword [esp + 0x3c], ecx
push edx
mov dword [esp + 0x44], ecx
push str.__s__winsock_reset
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x50], ecx
mov byte [esp + 0x1e4], cl
mov ecx, 0x81
mov word [esp + 0x88], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1e4]
mov dword [esp + 0x84], 1
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x50]
lea eax, [esp + 0x1dc]
push ecx
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402631
mov ebp, 1
jmp 0x402637
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x3c]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x40]
push eax
call esi
mov ecx, ebx
call fcn.00402500
push 0x40
push str.Sinfors_LSP
push 0x40a600
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
test ebp, ebp
jne 0x4029e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebp
push ecx
mov ecx, ebx
call fcn.00402dd0
cmp eax, ebp
mov dword [esp + 0x38], eax
je 0x4029e0
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push str.MSAFD
mov dword [esp + 0x18], ebp
call esi
push 0x40a5e8
mov dword [esp + 0x34], eax
call esi
mov ecx, 0x11
mov esi, str._SystemRoot__system32mswsock.dll
lea edi, [esp + 0x58]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
xor ebp, ebp
rep movsd dword es:[edi], dword [esi]
add esp, 8
mov ecx, 0x11
mov esi, str._SystemRoot__system32_rsvpsp.dll
lea edi, [esp + 0x94]
cmp eax, ebp
mov dword [esp + 0x10], ebp
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], ebp
jle 0x4028fa
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], ebp
lea esi, [edx + 0x14]
mov dword [esp + 0x20], esi
mov eax, dword [esi + 0x14]
lea edi, [esi + 0x60]
cmp eax, 1
jne 0x4028d0
mov eax, dword [esp + 0x2c]
mov ebx, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push eax
push str.MSAFD
push edi
call ebx
add esp, 0xc
test eax, eax
je 0x402745
mov ecx, dword [esp + 0x30]
push ecx
push 0x40a5e8
push edi
call ebx
add esp, 0xc
test eax, eax
jne 0x4028cc
test ebp, ebp
mov dword [esp + 0x34], 0
jle 0x40281e
mov edx, dword [esp + 0x10]
lea ebp, [edx + 0x14]
mov ecx, 4
lea edi, [ebp - 0x14]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x4027fe
mov esi, dword [ebp - 4]
lea eax, [esi + 1]
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
lea edi, [eax + ecx*4]
shl edi, 2
push edi
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4029a3
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esi + esi*4]
mov ecx, dword [esp + 0x20]
shl eax, 3
sub eax, esi
lea eax, [esi + eax*4]
lea esi, [ecx - 0x14]
shl eax, 2
mov ecx, 0x9d
lea edi, [eax + ebx]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp]
test esi, esi
je 0x4027f4
mov ecx, eax
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp], 0
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov dword [ebp], ebx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
inc eax
add ebp, 0x18
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x40275c
mov ebp, dword [esp + 0x18]
lea edi, [ebp + 0x18]
push edi
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4029a3
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add ebp, ebx
and ecx, 3
push 0x274
rep stosb byte es:[edi], al
mov eax, esi
mov ecx, ebp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
call sub.MFC42.DLL_operatornew
mov dword [ebp + 0x14], eax
mov edi, eax
mov eax, dword [esp + 0x14]
add esi, 0xffffffec
mov ecx, 0x9d
add esp, 4
rep movsd dword es:[edi], dword [esi]
test eax, eax
mov dword [ebp + 0x10], 1
je 0x4028ae
mov ecx, dword [esp + 0x18]
mov esi, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
inc ecx
add eax, 0x18
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
mov ebp, eax
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x4c]
push eax
push esi
call sub.WS2_32.dll_WSCDeinstallProvider
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
inc eax
add esi, 0x274
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
jl 0x402704
mov ebp, dword [esp + 0x14]
test ebp, ebp
jle 0x402987
mov ecx, dword [esp + 0x10]
lea esi, [ecx + 0x14]
mov edx, dword [esp + 0x2c]
mov eax, dword [esi]
mov edi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push edx
add eax, 0x74
push str.MSAFD
push eax
mov dword [esp + 0x28], 0
call edi
add esp, 0xc
test eax, eax
jne 0x40294b
mov edx, dword [esi - 4]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x58]
push eax
lea edx, [esi - 0x14]
push ecx
push edx
jmp 0x40297c
mov eax, dword [esp + 0x30]
mov ecx, dword [esi]
push eax
add ecx, 0x74
push 0x40a5e8
push ecx
call edi
add esp, 0xc
test eax, eax
jne 0x402981
mov eax, dword [esi - 4]
mov ecx, dword [esi]
lea edx, [esp + 0x1c]
push edx
push eax
lea edx, [esp + 0x9c]
push ecx
lea eax, [esi - 0x14]
push edx
push eax
call sub.WS2_32.dll_WSCInstallProvider
add esi, 0x18
dec ebp
jne 0x40290d
push 0x40
push str.Sinfors_LSP
push 0x40a600
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, ebx
call fcn.00402500
jmp 0x4029a7
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
test edi, edi
jle 0x4029c7
mov ecx, dword [esp + 0x10]
lea esi, [ecx + 0x14]
mov edx, dword [esi]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
add esi, 0x18
dec edi
jne 0x4029b6
mov eax, dword [esp + 0x10]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x3c]
add esp, 4
push ecx
mov ecx, ebx
call fcn.00402e50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3d4
ret