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

Disassembly:
push ebp
sub esp, 0x70
mov eax, 0x6abe15
call fcn.006375a8
sub esp, 0x30
and dword [ebp + 0x6c], 0
push esi
mov esi, ecx
mov byte [ebp + 0x73], 1
call fcn.00475cf1
and dword [ebp - 4], 0
lea eax, [esi + 0x31]
push eax
call fcn.0048a277
mov dword [ebp + 0x64], eax
test eax, eax
je 0x5f5477
push ebx
push 0x1e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.005913c4
mov ebx, eax
mov dword [ebp + 0x68], ebx
cmp ebx, 0xffffffff
je 0x5f5476
push edi
call fcn.005a7376
mov edi, 0x79fa34
test al, al
je 0x5f528e
mov ecx, dword [esi + 0x4c]
imul eax, ebx, 0xdc
test byte [eax + ecx + 0x88], 2
je 0x5f528e
cmp byte [eax + ecx + 0xd0], 0
je 0x5f528e
push edi
lea eax, [ebp + 0x30]
push eax
call fcn.0043ee34
xor edx, edx
inc edx
cmp dword [eax + 0x14], 8
jb 0x5f5255
mov eax, dword [eax]
mov ecx, dword [str.Default_Media_Player]
mov bx, word [eax]
cmp bx, word [ecx]
jne 0x5f5281
test bx, bx
je 0x5f527d
mov bx, word [eax + 2]
cmp bx, word [ecx + 2]
jne 0x5f5281
add eax, 4
add ecx, 4
test bx, bx
jne 0x5f525b
xor eax, eax
jmp 0x5f5286
sbb eax, eax
or eax, 1
test eax, eax
je 0x5f5291
mov bl, 1
jmp 0x5f5293
mov edx, dword [ebp + 0x6c]
xor bl, bl
test dl, 1
je 0x5f52a4
push 0
push 1
lea ecx, [ebp + 0x30]
call fcn.004267c2
test bl, bl
je 0x5f545c
mov eax, dword [ebp + 0x64]
imul edx, dword [ebp + 0x68], 0xdc
mov ecx, dword [eax + 0xd8]
mov eax, dword [esi + 0x4c]
mov eax, dword [edx + eax + 0x54]
imul eax, eax, 0x9c
add eax, dword [ecx + 4]
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.0050344a
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
mov byte [ebp - 4], 3
jae 0x5f52e6
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp]
push str.__s_
push eax
call fcn.004638e7
add esp, 0xc
cmp dword [ebp + 0x14], 8
push 0x31
pop eax
mov word [ebp + 0x60], ax
mov eax, dword [ebp]
jae 0x5f530b
lea eax, [ebp]
cmp dword [0x79fa48], 0x10
mov dword [ebp + 0x64], eax
mov eax, dword [0x79fa34]
jae 0x5f531e
mov eax, edi
mov esi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
xor ebx, ebx
push ebx
push ebx
push eax
call esi
mov dword [ebp + 0x5c], 0xf
mov dword [ebp + 0x58], ebx
mov byte [ebp + 0x48], bl
lea ebx, [eax + 1]
mov byte [ebp - 4], 5
push 0
push ebx
lea ecx, [ebp + 0x48]
call fcn.0043e0dd
cmp dword [ebp + 0x5c], 0x10
mov eax, dword [ebp + 0x48]
jae 0x5f5356
lea eax, [ebp + 0x48]
cmp dword [0x79fa48], 0x10
jb 0x5f5365
mov edi, dword [0x79fa34]
push ebx
push eax
push edi
call esi
cmp dword [ebp + 0x5c], 0x10
mov ecx, dword [ebp + 0x48]
jae 0x5f5376
lea ecx, [ebp + 0x48]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5f5379
sub ecx, edx
xor ebx, ebx
push ebx
push ecx
lea ecx, [ebp + 0x48]
call fcn.0043e0dd
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0043ee34
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 6
jb 0x5f53a7
mov eax, dword [eax]
xor edi, edi
lea ecx, [ebp + 0x60]
inc edi
push edi
push ecx
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0048099c
push ebx
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call fcn.004267c2
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0043edf3
cmp dword [eax + 0x14], 0x10
jb 0x5f53dc
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push ebx
push edi
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040daff
cmp esi, 0x20
jg 0x5f5432
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
jae 0x5f5401
lea eax, [ebp + 0x18]
push eax
push 0x389
call fcn.00588778
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004638e7
add esp, 0xc
push eax
push 0x132
mov byte [ebp - 4], 9
call fcn.0048a5eb
push ebx
push edi
lea ecx, [ebp - 0x24]
call fcn.004267c2
push ebx
push edi
lea ecx, [ebp + 0x18]
call fcn.004267c2
push ebx
push edi
lea ecx, [ebp + 0x48]
call fcn.0040daff
push ebx
push edi
lea ecx, [ebp]
call fcn.004267c2
push ebx
push edi
lea ecx, [ebp + 0x30]
call fcn.004267c2
jmp 0x5f5475
imul ecx, dword [ebp + 0x68], 0xdc
mov eax, dword [esi + 0x4c]
push 0
push dword [ecx + eax + 0x54]
mov eax, dword [ebp + 0x64]
push eax
call fcn.0058d126
pop edi
pop ebx
mov dword [ebp - 4], 0xa
call fcn.00475d32
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
lea esp, [ebp + 0x74]
pop ebp
ret 4