Function at 0x59e00d
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x6bc3a2
call fcn.00664608
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 0x59e02e
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, 0x7b670c
mov dword [ebp - 4], ebx
mov byte [ebp + 0xf], bl
mov byte [eax], bl
mov eax, esi
cmp dword [0x7b6720], 0x10
jb 0x59e061
mov eax, dword [0x7b670c]
push str.http
push eax
call fcn.004713ce
test al, al
je 0x59e074
mov byte [ebp + 0xf], 1
cmp dword [0x7b6720], 0x10
jb 0x59e083
mov esi, dword [0x7b670c]
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00471937
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x59e099
mov eax, dword [ebp - 0x40]
push str.Default_Media_Player
push eax
call fcn.0043bbd7
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00427afc
test esi, esi
je 0x59e0d6
cmp dword [0x7b6720], 0x10
mov eax, dword [0x7b670c]
jae 0x59e0c5
mov eax, 0x7b670c
push dword [0x7b671c]
lea ecx, [ebp - 0x28]
push eax
call fcn.00410407
jmp 0x59e148
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 0x59e0f0
mov ecx, dword [ecx]
push ecx
call fcn.00451785
mov esi, eax
test esi, esi
je 0x59e1a9
push ebx
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [esi - 2]
push eax
call fcn.0042cfa6
test al, al
je 0x59e1a2
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.0047181f
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x59e136
mov byte [ebp - 0x10], bl
push dword [ebp - 0x10]
push eax
call fcn.004100a8
lea ecx, [ebp - 0x40]
call fcn.00410858
push 1
push dword [ebp + 8]
call fcn.004513a7
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x59e154
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.0043b05e
cmp dword [edi + 0x14], 0x10
jb 0x59e174
mov edi, dword [edi]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x59e180
mov eax, dword [ebp - 0x28]
push dword [ebp + 8]
push edi
push eax
call esi
cmp dword [0x7b671c], 0
je 0x59e196
cmp byte [ebp + 0xf], 0
jne 0x59e198
mov bl, 1
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
xor ebx, ebx
inc ebx
jmp 0x59e1f9
mov eax, 0x6cdce8
jmp 0x59e1b0
mov eax, 0x6ce190
mov esi, eax
push eax
push esi
push 0x39e
call fcn.00599084
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004577f2
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 0x59e1e5
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00599ee6
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00427afc
mov eax, dword [ebp - 0x14]
pop esi
cmp eax, 0x10
jb 0x59e22f
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
cmp eax, 0x1000
jb 0x59e226
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc