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

Disassembly:
push 0x98
mov eax, 0x443d89
call fcn.00429961
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x84], ecx
xor ebx, ebx
push eax
lea ecx, [ebp - 0x4c]
mov dword [esi], ebx
call fcn.0040a2a8
lea eax, [ebp - 0x69]
push eax
push ebx
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x69], bl
call fcn.004230e5
push ebx
push 0x403fdc
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0040f5ab
mov edi, eax
cmp edi, 0xffffffff
jne 0x42579f
lea ecx, [ebp - 0x94]
call fcn.00409751
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00407cc4
xor al, al
jmp 0x425964
push edi
push ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040a2d4
mov eax, dword [ebp - 0x38]
sub eax, edi
dec eax
push eax
inc edi
push edi
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.0040a2d4
push 0x403fd4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040beca
test eax, eax
je 0x42588a
push 0x403fc0
lea ecx, [ebp - 0x30]
call fcn.0040beca
test eax, eax
je 0x42588a
push 0x403fb8
lea ecx, [ebp - 0x30]
call fcn.0040beca
test eax, eax
je 0x425883
push 0x403fa4
lea ecx, [ebp - 0x30]
call fcn.0040beca
test eax, eax
je 0x425883
push 0x403f9c
lea ecx, [ebp - 0x30]
call fcn.0040beca
test eax, eax
je 0x42587c
push 0x403f88
lea ecx, [ebp - 0x30]
call fcn.0040beca
test eax, eax
je 0x42587c
push 0x403f84
lea ecx, [ebp - 0x30]
call fcn.0040beca
test eax, eax
je 0x425875
push 0x403f78
lea ecx, [ebp - 0x30]
call fcn.0040beca
test eax, eax
je 0x425875
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00407cc4
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00407cc4
jmp 0x425782
mov ecx, 0x80000003
jmp 0x42588f
mov ecx, 0x80000000
jmp 0x42588f
mov ecx, 0x80000001
jmp 0x42588f
mov ecx, 0x80000002
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x78], ebx
mov byte [ebp - 0x69], bl
jae 0x4258a1
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 0x425935
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
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 dword [ebp - 0x70], ebx
mov dword [ebp - 0x7c], ebx
call edi
cmp eax, ebx
jne 0x42592c
cmp dword [ebp - 0x7c], ebx
jbe 0x42592c
cmp dword [ebp - 0x70], 1
je 0x42596a
cmp dword [ebp - 0x70], 2
je 0x42596a
cmp dword [ebp - 0x70], 4
jne 0x42592c
cmp dword [ebp - 0x7c], 4
jne 0x42592c
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 edi
test eax, eax
jne 0x42592c
mov eax, dword [ebp - 0x80]
mov dword [esi], 2
mov dword [esi + 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.00407cc4
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00407cc4
lea ecx, [ebp - 0x94]
call fcn.00409751
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00407cc4
mov al, byte [ebp - 0x69]
call fcn.004299cc
ret
push ebx
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x94]
call fcn.00425578
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x90]
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x84]
push dword [ebp - 0x78]
call edi
cmp eax, ebx
jne 0x42592c
xor eax, eax
inc eax
cmp dword [ebp - 0x70], eax
jne 0x4259b4
push dword [ebp - 0x90]
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.0040898b
jmp 0x425928
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
push ebx
push dword [ebp - 0x90]
call edi
mov dword [ebp - 0x80], eax
cmp eax, ebx
jbe 0x42592c
lea ecx, [ebp - 0x71]
push ecx
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0x71], bl
call fcn.004230e5
push dword [ebp - 0x80]
mov byte [ebp - 4], 5
push dword [ebp - 0xa0]
push dword [ebp - 0x90]
call edi
cmp eax, ebx
jbe 0x425a13
push dword [ebp - 0xa0]
lea ecx, [esi + 4]
mov dword [esi], 1
call fcn.0040898b
mov byte [ebp - 0x69], 1
lea ecx, [ebp - 0xa4]
call fcn.00409751
jmp 0x42592c