Function at 0x5a63dd
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x6c5667
call fcn.0066bd6c
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 0x5a63fe
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, 0x7c13dc
mov dword [ebp - 4], ebx
mov byte [ebp + 0xf], bl
mov byte [eax], bl
mov eax, esi
cmp dword [0x7c13f0], 0x10
jb 0x5a6431
mov eax, dword [0x7c13dc]
push str.http
push eax
call fcn.0047e2cd
test al, al
je 0x5a6444
mov byte [ebp + 0xf], 1
cmp dword [0x7c13f0], 0x10
jb 0x5a6453
mov esi, dword [0x7c13dc]
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.0047e836
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x5a6469
mov eax, dword [ebp - 0x40]
push str.Default_Media_Player
push eax
call fcn.0043b6c6
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.0042756c
test esi, esi
je 0x5a64a6
cmp dword [0x7c13f0], 0x10
mov eax, dword [0x7c13dc]
jae 0x5a6495
mov eax, 0x7c13dc
push dword [0x7c13ec]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040fe77
jmp 0x5a6518
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 0x5a64c0
mov ecx, dword [ecx]
push ecx
call fcn.0045e680
mov esi, eax
test esi, esi
je 0x5a6579
push ebx
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [esi - 2]
push eax
call fcn.0042ca16
test al, al
je 0x5a6572
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.0047e71e
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x5a6506
mov byte [ebp - 0x10], bl
push dword [ebp - 0x10]
push eax
call fcn.0040fb18
lea ecx, [ebp - 0x40]
call fcn.004102c8
push 1
push dword [ebp + 8]
call fcn.0045e2a2
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x5a6524
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.0043ab4d
cmp dword [edi + 0x14], 0x10
jb 0x5a6544
mov edi, dword [edi]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x5a6550
mov eax, dword [ebp - 0x28]
push dword [ebp + 8]
push edi
push eax
call esi
cmp dword [0x7c13ec], 0
je 0x5a6566
cmp byte [ebp + 0xf], 0
jne 0x5a6568
mov bl, 1
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
xor ebx, ebx
inc ebx
jmp 0x5a65c9
mov eax, 0x6d6cc8
jmp 0x5a6580
mov eax, 0x6d7170
mov esi, eax
push eax
push esi
push 0x39d
call fcn.005a1454
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004646d1
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 0x5a65b5
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.005a22b6
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0042756c
mov eax, dword [ebp - 0x14]
pop esi
cmp eax, 0x10
jb 0x5a65ff
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
cmp eax, 0x1000
jb 0x5a65f6
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0042741e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc