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

Disassembly:
push ebp
sub esp, 0x70
mov eax, 0x6856f4
call fcn.0062921c
sub esp, 0x30
and dword [ebp + 0x6c], 0
push esi
mov esi, ecx
mov byte [ebp + 0x73], 1
call fcn.00472fb7
and dword [ebp - 4], 0
lea eax, [esi + 0x31]
push eax
call fcn.00486e54
mov dword [ebp + 0x64], eax
test eax, eax
je 0x5e7dcb
push ebx
push 0x1e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00584324
mov ebx, eax
mov dword [ebp + 0x68], ebx
cmp ebx, 0xffffffff
je 0x5e7dca
push edi
call fcn.00599bb3
mov edi, 0x76d0cc
test al, al
je 0x5e7be2
mov ecx, dword [esi + 0x4c]
imul eax, ebx, 0xdc
test byte [eax + ecx + 0x88], 2
je 0x5e7be2
cmp byte [eax + ecx + 0xd0], 0
je 0x5e7be2
push edi
lea eax, [ebp + 0x30]
push eax
call fcn.0043beee
xor edx, edx
inc edx
cmp dword [eax + 0x14], 8
jb 0x5e7ba9
mov eax, dword [eax]
mov ecx, dword [str.Default_Media_Player]
mov bx, word [eax]
cmp bx, word [ecx]
jne 0x5e7bd5
test bx, bx
je 0x5e7bd1
mov bx, word [eax + 2]
cmp bx, word [ecx + 2]
jne 0x5e7bd5
add eax, 4
add ecx, 4
test bx, bx
jne 0x5e7baf
xor eax, eax
jmp 0x5e7bda
sbb eax, eax
or eax, 1
test eax, eax
je 0x5e7be5
mov bl, 1
jmp 0x5e7be7
mov edx, dword [ebp + 0x6c]
xor bl, bl
test dl, 1
je 0x5e7bf8
push 0
push 1
lea ecx, [ebp + 0x30]
call fcn.0042386b
test bl, bl
je 0x5e7db0
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.004faa30
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
mov byte [ebp - 4], 3
jae 0x5e7c3a
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp]
push str.__s_
push eax
call fcn.004607f4
add esp, 0xc
cmp dword [ebp + 0x14], 8
push 0x31
pop eax
mov word [ebp + 0x60], ax
mov eax, dword [ebp]
jae 0x5e7c5f
lea eax, [ebp]
cmp dword [0x76d0e0], 0x10
mov dword [ebp + 0x64], eax
mov eax, dword [0x76d0cc]
jae 0x5e7c72
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.0043b184
cmp dword [ebp + 0x5c], 0x10
mov eax, dword [ebp + 0x48]
jae 0x5e7caa
lea eax, [ebp + 0x48]
cmp dword [0x76d0e0], 0x10
jb 0x5e7cb9
mov edi, dword [0x76d0cc]
push ebx
push eax
push edi
call esi
cmp dword [ebp + 0x5c], 0x10
mov ecx, dword [ebp + 0x48]
jae 0x5e7cca
lea ecx, [ebp + 0x48]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5e7ccd
sub ecx, edx
xor ebx, ebx
push ebx
push ecx
lea ecx, [ebp + 0x48]
call fcn.0043b184
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0043beee
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 6
jb 0x5e7cfb
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.0047dbdb
push ebx
push edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 8
call fcn.0042386b
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0043bead
cmp dword [eax + 0x14], 0x10
jb 0x5e7d30
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.0040abbf
cmp esi, 0x20
jg 0x5e7d86
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
jae 0x5e7d55
lea eax, [ebp + 0x18]
push eax
push 0x389
call fcn.0057b788
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004607f4
add esp, 0xc
push eax
push 0x132
mov byte [ebp - 4], 9
call fcn.004871c8
push ebx
push edi
lea ecx, [ebp - 0x24]
call fcn.0042386b
push ebx
push edi
lea ecx, [ebp + 0x18]
call fcn.0042386b
push ebx
push edi
lea ecx, [ebp + 0x48]
call fcn.0040abbf
push ebx
push edi
lea ecx, [ebp]
call fcn.0042386b
push ebx
push edi
lea ecx, [ebp + 0x30]
call fcn.0042386b
jmp 0x5e7dc9
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.005800e7
pop edi
pop ebx
mov dword [ebp - 4], 0xa
call fcn.00472ff8
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
lea esp, [ebp + 0x74]
pop ebp
ret 4