Function at 0x5b40e9
Capabilities:
Get common file path
Get comspec environment variable
Get startup folder
Query environment variable

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x6c5fe4
call fcn.0066bd6c
sub esp, 0x458
lea eax, [ebp - 0x464]
push ebx
push esi
push edi
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x5b43c2
xor ebx, ebx
lea eax, [ebp - 0x25c]
push ebx
push 0x25
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp + 0x48], ebx
push str.ping.exe
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
call fcn.00427613
push 1
lea eax, [ebp + 0x48]
mov dword [ebp - 4], ebx
push eax
sub esp, 0x18
lea eax, [ebp - 0x25c]
mov ecx, esp
push 7
pop esi
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], esi
call fcn.00427613
lea eax, [ebp - 0x54]
push eax
call fcn.0045e5a4
mov eax, dword [ebp + 0x5c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x5b41bf
mov ecx, dword [ebp + 0x48]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x68], ecx
cmp eax, 0x1000
jb 0x5b41b6
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x68]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
sub esp, 0x18
mov dword [ebp + 0x5c], esi
xor eax, eax
mov dword [ebp + 0x58], ebx
mov word [ebp + 0x48], ax
lea esi, [ebp - 0x54]
lea eax, [ebp - 0x3c]
push 6
pop ecx
mov edi, esp
push str._s__n_2_127.0.0.1_r_n
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004646d1
add esp, 0x20
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.004274a7
push dword [ebp + 0x74]
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 4
call fcn.00437203
push ebx
push ebx
lea eax, [ebp]
push eax
call fcn.0045e7b8
push 0x6dc1a8
lea ecx, [ebp]
mov byte [ebp - 4], 5
call fcn.00437203
push 8
pop edi
lea eax, [ebp]
cmp dword [ebp + 0x14], edi
jb 0x5b423b
mov eax, dword [ebp]
push 0x80
push 7
pop esi
push esi
push eax
call fcn.0045fd28
mov dword [ebp + 0x60], eax
lea eax, [ebp + 0x18]
cmp dword [ebp + 0x2c], edi
jb 0x5b4258
mov eax, dword [ebp + 0x18]
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.0047e71e
cmp dword [ebp + 0x5c], 0x10
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 6
jb 0x5b4272
mov eax, dword [ebp + 0x48]
push dword [ebp + 0x28]
push eax
push dword [ebp + 0x60]
call fcn.0046024d
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 5
call fcn.004102c8
lea eax, [ebp + 0x60]
push eax
call fcn.0045fcba
xor eax, eax
mov dword [ebp + 0x30], ebx
mov word [ebp + 0x30], ax
lea ecx, [ebp + 0x30]
lea eax, [ebp - 0x464]
mov dword [ebp + 0x40], ebx
push eax
mov dword [ebp + 0x44], esi
call fcn.00427613
push str.__C
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 7
call fcn.00437203
lea eax, [ebp]
cmp dword [ebp + 0x14], edi
jb 0x5b42cd
mov eax, dword [ebp]
push dword [ebp + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.004275b5
lea eax, [ebp + 0x30]
cmp dword [ebp + 0x44], edi
jb 0x5b42e4
mov eax, dword [ebp + 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0047e71e
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
jb 0x5b42fa
mov eax, dword [ebp - 0x24]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
cmp eax, 0x1f
lea ecx, [ebp - 0x24]
seta bl
call fcn.004102c8
mov eax, dword [ebp + 0x44]
cmp eax, edi
jb 0x5b434a
mov ecx, dword [ebp + 0x30]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x68], ecx
cmp eax, 0x1000
jb 0x5b4341
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x68]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
and dword [ebp + 0x40], 0
lea ecx, [ebp]
xor eax, eax
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
call fcn.0042756c
mov eax, dword [ebp + 0x2c]
cmp eax, edi
jb 0x5b439d
mov ecx, dword [ebp + 0x18]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x68], ecx
cmp eax, 0x1000
jb 0x5b4394
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x68]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
and dword [ebp + 0x28], 0
lea ecx, [ebp - 0x3c]
xor eax, eax
mov dword [ebp + 0x2c], 7
mov word [ebp + 0x18], ax
call fcn.0042756c
lea ecx, [ebp - 0x54]
call fcn.0042756c
mov al, bl
jmp 0x5b43c4
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x6c
leave
ret 4