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

Disassembly:
push 0x98
mov eax, 0x43fcaf
call fcn.0042dc1b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84], ecx
mov edi, edx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x4c]
mov dword [edi], ebx
call fcn.00408751
lea eax, [ebp - 0x69]
push eax
mov dword [ebp - 4], ebx
xor eax, eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 0x69], bl
call fcn.004081bc
push ebx
push 0x4061ac
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 1
call fcn.0040ef80
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
jne 0x4232a7
lea esi, [ebp - 0x94]
call fcn.00420b6d
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00408339
xor al, al
jmp 0x42346e
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0x30]
call fcn.0040b3fa
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x80]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea eax, [ebp - 0x4c]
push eax
lea esi, [ebp - 0x68]
call fcn.0040b3fa
push 0x40664c
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040c69d
test eax, eax
je 0x423394
push 0x40660c
lea eax, [ebp - 0x30]
call fcn.0040c69d
test eax, eax
je 0x423394
push 0x406654
lea eax, [ebp - 0x30]
call fcn.0040c69d
test eax, eax
je 0x42338d
push 0x406620
lea eax, [ebp - 0x30]
call fcn.0040c69d
test eax, eax
je 0x42338d
push 0x40665c
lea eax, [ebp - 0x30]
call fcn.0040c69d
test eax, eax
je 0x423386
push 0x406634
lea eax, [ebp - 0x30]
call fcn.0040c69d
test eax, eax
je 0x423386
push 0x406648
lea eax, [ebp - 0x30]
call fcn.0040c69d
test eax, eax
je 0x42337f
push 0x406600
lea eax, [ebp - 0x30]
call fcn.0040c69d
test eax, eax
je 0x42337f
push ebx
push 1
mov ecx, esi
call fcn.00408339
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00408339
jmp 0x42328a
mov ecx, 0x80000003
jmp 0x423399
mov ecx, 0x80000000
jmp 0x423399
mov ecx, 0x80000001
jmp 0x423399
mov ecx, 0x80000002
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x78], ebx
mov byte [ebp - 0x69], bl
jae 0x4233ab
lea eax, [ebp - 0x64]
lea edx, [ebp - 0x78]
push edx
push 0x20019
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42343f
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x84]
mov byte [ebp - 4], 4
push dword [ebp - 0x78]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x7c], ebx
call esi
cmp eax, ebx
jne 0x423436
cmp dword [ebp - 0x7c], ebx
jbe 0x423436
cmp dword [ebp - 0x70], 1
je 0x423474
cmp dword [ebp - 0x70], 2
je 0x423474
cmp dword [ebp - 0x70], 4
jne 0x423436
cmp dword [ebp - 0x7c], 4
jne 0x423436
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x84]
mov dword [ebp - 0x80], ebx
push dword [ebp - 0x78]
call esi
test eax, eax
jne 0x423436
mov eax, dword [ebp - 0x80]
mov dword [edi], 2
mov dword [edi + 0x20], eax
mov byte [ebp - 0x69], 1
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00408339
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00408339
lea esi, [ebp - 0x94]
call fcn.00420b6d
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00408339
mov al, byte [ebp - 0x69]
call fcn.0042dc77
ret
push dword [ebp - 0x7c]
lea eax, [ebp - 0x94]
call fcn.004258af
lea eax, [ebp - 0x7c]
push eax
lea esi, [ebp - 0x94]
call fcn.004081a3
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x84]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x423436
xor eax, eax
inc eax
cmp dword [ebp - 0x70], eax
jne 0x4234c7
mov dword [edi], eax
call fcn.004081a3
push eax
lea ecx, [edi + 4]
call fcn.00408773
jmp 0x423432
push ebx
push ebx
call fcn.004081a3
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
cmp esi, ebx
jbe 0x423436
lea eax, [ebp - 0x71]
push eax
mov eax, esi
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0x71], bl
call fcn.004081bc
push esi
lea esi, [ebp - 0xa4]
mov byte [ebp - 4], 5
call fcn.004081a3
push eax
lea esi, [ebp - 0x94]
call fcn.004081a3
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, ebx
jbe 0x423538
lea esi, [ebp - 0xa4]
mov dword [edi], 1
call fcn.004081a3
push eax
lea ecx, [edi + 4]
call fcn.00408773
mov byte [ebp - 0x69], 1
lea esi, [ebp - 0xa4]
call fcn.00420b6d
jmp 0x423436