Function at 0x507ba0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6597de
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x200], edi
mov dword [ebp - 0x1fc], eax
mov dword [ebp - 0x1f0], ebx
call fcn.0061538b
test eax, eax
je 0x508126
nop dword [eax]
push ebx
mov ecx, edi
call fcn.00614b15
push eax
lea ecx, [ebp - 0x220]
call fcn.006147d4
lea eax, [ebp - 0x174]
mov dword [ebp - 4], 0
push eax
push str.name
lea ecx, [ebp - 0x220]
call fcn.00614bdd
mov ecx, eax
call fcn.00614dfd
push 0x104
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea ecx, [ebp - 0x114]
cmp dword [ebp - 0x160], 0x10
lea eax, [ebp - 0x174]
cmovae eax, dword [ebp - 0x174]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x148], 0xf
mov dword [ebp - 0x14c], 0
mov byte [ebp - 0x15c], 0
jne 0x507cc6
xor eax, eax
jmp 0x507cd9
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x507cd0
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x15c]
call fcn.00414ab0
push str.command
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00614bdd
push eax
lea ecx, [ebp - 0x210]
call fcn.006147d4
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 3
xor esi, esi
call fcn.0061538b
test eax, eax
je 0x508075
mov ebx, dword [ebp - 0x1f4]
nop dword [eax + eax]
lea eax, [ebp - 0x12c]
push eax
push esi
lea ecx, [ebp - 0x210]
call fcn.00614b15
mov ecx, eax
call fcn.00614dfd
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 4
push eax
push dword [ebp - 0x1f8]
lea eax, [ebp - 0x1a4]
push eax
call fcn.005092a0
push dword [ebp - 0x1fc]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.00509260
add esp, 0x18
mov edi, eax
lea eax, [ebp - 0x12c]
mov byte [ebp - 4], 6
cmp eax, edi
je 0x507dd6
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x507daf
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00414c80
push edi
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
call fcn.00414640
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x178]
cmp eax, 0x10
jb 0x507df8
inc eax
lea ecx, [ebp - 0x18c]
push eax
push dword [ebp - 0x18c]
call fcn.00414c80
mov dword [ebp - 0x178], 0xf
mov dword [ebp - 0x17c], 0
mov byte [ebp - 0x18c], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x190]
cmp eax, 0x10
jb 0x507e35
inc eax
lea ecx, [ebp - 0x1a4]
push eax
push dword [ebp - 0x1a4]
call fcn.00414c80
lea edx, [ebp - 0x12c]
mov dword [ebp - 0x190], 0xf
lea ecx, [ebp - 0x1bc]
mov dword [ebp - 0x194], 0
mov byte [ebp - 0x1a4], 0
call fcn.00507350
push 7
push str._param
push 0
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.004fa170
mov dword [ebp - 0x134], 0
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x130], 0
push eax
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
call fcn.00414640
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x507ed2
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00414c80
lea eax, [ebp - 0x144]
mov dword [ebp - 0x118], 0xf
push eax
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
call fcn.00414640
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x130]
cmp eax, 0x10
jb 0x507f21
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00414c80
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1a8]
cmp eax, 0x10
jb 0x507f5e
inc eax
lea ecx, [ebp - 0x1bc]
push eax
push dword [ebp - 0x1bc]
call fcn.00414c80
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x1a8], 0xf
push eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x1ac], 0
push eax
lea eax, [ebp - 0x1ec]
mov byte [ebp - 0x1bc], 0
push eax
call fcn.00509360
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.00508df0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c0]
cmp eax, 0x10
jb 0x507fc4
inc eax
lea ecx, [ebp - 0x1d4]
push eax
push dword [ebp - 0x1d4]
call fcn.00414c80
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x1c0], 0xf
mov dword [ebp - 0x1c4], 0
mov byte [ebp - 0x1d4], 0
cmp eax, 0x10
jb 0x507ffd
inc eax
lea ecx, [ebp - 0x1ec]
push eax
push dword [ebp - 0x1ec]
call fcn.00414c80
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x1d8], 0xf
mov dword [ebp - 0x1dc], 0
mov byte [ebp - 0x1ec], 0
cmp eax, 0x10
jb 0x50803a
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00414c80
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
inc esi
mov byte [ebp - 0x12c], 0
call fcn.0061538b
cmp esi, eax
jb 0x507d30
mov ebx, dword [ebp - 0x1f0]
mov edi, dword [ebp - 0x200]
lea ecx, [ebp - 0x210]
mov byte [ebp - 4], 2
call fcn.00614a31
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x148]
cmp eax, 0x10
jb 0x5080a6
inc eax
lea ecx, [ebp - 0x15c]
push eax
push dword [ebp - 0x15c]
call fcn.00414c80
mov dword [ebp - 0x148], 0xf
mov dword [ebp - 0x14c], 0
mov byte [ebp - 0x15c], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x160]
cmp eax, 0x10
jb 0x5080e3
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.00414c80
mov dword [ebp - 0x160], 0xf
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x164], 0
mov byte [ebp - 0x174], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00614a31
inc ebx
mov ecx, edi
mov dword [ebp - 0x1f0], ebx
call fcn.0061538b
cmp ebx, eax
jb 0x507c10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret 0x10