Function at 0x5bf8a6
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x6e4948
call fcn.006899cc
sub esp, 0x54
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov eax, edi
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x14], 0x10
jb 0x5bf8c7
mov eax, dword [edi]
mov byte [eax], bl
mov dword [ebp - 0x28], ebx
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
mov eax, dword [ebp + 0x10]
mov esi, 0x7e6130
mov dword [ebp - 4], ebx
mov byte [ebp + 0xf], bl
mov byte [eax], bl
mov eax, esi
cmp dword [0x7e6144], 0x10
jb 0x5bf8fa
mov eax, dword [0x7e6130]
push 0x6fedc4
push eax
call fcn.0048f860
test al, al
je 0x5bf90d
mov byte [ebp + 0xf], 1
cmp dword [0x7e6144], 0x10
jb 0x5bf91c
mov esi, dword [0x7e6130]
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.0048fdc9
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x5bf932
mov eax, dword [ebp - 0x40]
push str.Default_Media_Player
push eax
call fcn.0045b982
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.0044823e
test esi, esi
je 0x5bf96f
cmp dword [0x7e6144], 0x10
mov eax, dword [0x7e6130]
jae 0x5bf95e
mov eax, 0x7e6130
push dword [0x7e6140]
lea ecx, [ebp - 0x28]
push eax
call fcn.00414b60
jmp 0x5bf9e1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x60]
neg ecx
sbb ecx, ecx
and ecx, 0x18
add ecx, 0x38
add ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x5bf989
mov ecx, dword [ecx]
push ecx
call fcn.0046f57c
mov esi, eax
test esi, esi
je 0x5bfa42
push ebx
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [esi - 2]
push eax
call fcn.0044d2f2
test al, al
je 0x5bfa3b
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.0048fcb1
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x5bf9cf
mov byte [ebp - 0x10], bl
push dword [ebp - 0x10]
push eax
call fcn.00416240
lea ecx, [ebp - 0x40]
call fcn.0040fad0
push 1
push dword [ebp + 8]
call fcn.0046f19e
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x5bf9ed
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
push ebx
push ebx
push eax
call esi
inc eax
mov ecx, edi
push ebx
push eax
mov dword [ebp + 8], eax
call fcn.00415d50
cmp dword [edi + 0x14], 0x10
jb 0x5bfa0d
mov edi, dword [edi]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x5bfa19
mov eax, dword [ebp - 0x28]
push dword [ebp + 8]
push edi
push eax
call esi
cmp dword [0x7e6140], 0
je 0x5bfa2f
cmp byte [ebp + 0xf], 0
jne 0x5bfa31
mov bl, 1
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
xor ebx, ebx
inc ebx
jmp 0x5bfa92
mov eax, 0x6f5d68
jmp 0x5bfa49
mov eax, 0x6f6210
mov esi, eax
push eax
push esi
push 0x3a0
call fcn.005ba91d
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00475719
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x5c], 0x30
inc eax
cmp dword [ebp - 0x2c], 8
mov byte [ebp - 4], al
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x40]
jb 0x5bfa7e
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.005bb77f
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0044823e
mov eax, dword [ebp - 0x14]
pop esi
cmp eax, 0x10
jb 0x5bfac8
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
cmp eax, 0x1000
jb 0x5bfabf
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc