Function at 0x6206292d
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov byte [eax], bl
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push 0x620612bc
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x62062bea
push esi
push edi
push 0x41
pop ecx
mov byte [ebp - 0x148], bl
lea edi, [ebp - 0x147]
rep stosd dword es:[edi], eax
mov edi, 0x105
push edi
lea eax, [ebp - 0x148]
push eax
call fcn.620626fb
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
je 0x620629b2
cmp byte [ebp - 0x148], bl
je 0x62062bdf
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x620629d0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x250]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x18], edi
call esi
cmp eax, ebx
jne 0x62062bdf
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x62062bdf
push 9
pop ecx
mov byte [ebp - 0x40], bl
lea edi, [ebp - 0x3f]
rep stosd dword es:[edi], eax
push 4
stosw word es:[edi], ax
pop edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x620612ac
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], edi
call esi
test eax, eax
jne 0x62062a2e
cmp dword [ebp - 4], edi
je 0x62062a35
mov dword [ebp - 0x18], 1
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
mov edi, 0x62061298
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x62062a7c
cmp dword [ebp - 4], 7
jne 0x62062a7c
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x62062a7c
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
mov edi, 0x62061288
push edi
push dword [ebp - 8]
call esi
test eax, eax
jne 0x62062ac3
cmp dword [ebp - 4], 7
jne 0x62062ac3
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x62062ac3
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x62061278
push dword [ebp - 8]
mov dword [ebp + 8], 0x27
call esi
test eax, eax
jne 0x62062b51
xor edi, edi
inc edi
cmp dword [ebp - 4], edi
jne 0x62062b51
cmp dword [ebp - 0x18], ebx
jne 0x62062afd
call fcn.620627f1
test eax, eax
je 0x62062afd
xor edi, edi
cmp dword [ebp - 0xc], ebx
je 0x62062b1d
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x40]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push eax
call fcn.620624a3
test eax, eax
jne 0x62062bac
cmp dword [ebp - 0x10], ebx
je 0x62062b39
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x40]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push eax
call fcn.620624a3
test eax, eax
jne 0x62062bac
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push ebx
lea eax, [ebp - 0x40]
push eax
call fcn.620624a3
test eax, eax
jne 0x62062bac
jmp 0x62062b54
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 0x14], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov eax, 0x62061270
jne 0x62062b69
mov eax, 0x62061264
lea ecx, [ebp + 8]
push ecx
push edi
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push dword [ebp - 8]
call esi
test eax, eax
je 0x62062b81
mov byte [edi], bl
jmp 0x62062bac
cmp dword [ebp - 4], 2
jne 0x62062bac
push 0x104
lea eax, [ebp - 0x354]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jbe 0x62062bac
lea eax, [ebp - 0x354]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x62062bc4
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
cmp dword [ebp - 0x10], ebx
je 0x62062bd6
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp byte [ecx], bl
pop ebx
setne al
leave
ret 0x10