Function at 0x4071d1
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x16c
mov eax, 0x43ba15
call fcn.00427b21
mov eax, dword [ebp + 8]
xor ebx, ebx
push eax
lea edi, [ebp - 0x80]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x90], ebx
call fcn.004069f1
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x407210
lea eax, [ebp - 0x7c]
push eax
lea esi, [ebp - 0x88]
lea edi, [ebp - 0xa0]
call fcn.004067f7
pop ecx
test al, al
je 0x407690
lea eax, [ebp - 0xb8]
push eax
call fcn.00408847
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push dword [ebp - 0xa0]
lea edi, [ebp - 0xb8]
call fcn.00406760
pop ecx
pop ecx
test al, al
je 0x407622
mov esi, dword [ebp - 0xac]
cmp esi, dword [ebp - 0xa8]
jbe 0x40726c
call fcn.0042516a
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x88], esi
mov esi, dword [ebp - 0xa8]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0xac], esi
jbe 0x407291
call fcn.0042516a
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], esi
jmp 0x4072bd
lea esi, [ebp - 0x8c]
call fcn.00408929
mov eax, dword [eax]
cmp dword [eax + 4], 2
je 0x4072d7
call fcn.00408951
lea edi, [ebp - 0x9c]
lea esi, [ebp - 0x8c]
call fcn.0040897c
test al, al
jne 0x4072a5
jmp 0x407622
call fcn.00408929
mov eax, dword [eax]
push ebx
push 0x45d4b4
push 0x45d0a8
push ebx
push eax
call fcn.00438a3a
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x407622
mov eax, dword [ebp - 0x84]
lea esi, [edi + 0x24]
call fcn.004086ea
lea eax, [edi + 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040357d
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], ebx
je 0x407613
push str._PRODUCTCODE_
lea ecx, [ebp - 0xd4]
call fcn.00403558
mov byte [ebp - 4], 3
push dword [ebp - 0x94]
lea eax, [ebp - 0xf0]
push eax
call fcn.00404446
pop ecx
pop ecx
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 0x10
jb 0x40735b
mov eax, dword [eax + 4]
jmp 0x40735e
add eax, 4
push eax
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x88], esp
push eax
lea esi, [ebp - 0xd4]
call fcn.0040357d
lea eax, [ebp - 0x10c]
push eax
mov ecx, esi
call fcn.004052a7
add esp, 0x24
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00403600
push ebx
push 1
lea ecx, [ebp - 0x10c]
call fcn.004036b1
push ebx
push 1
lea ecx, [ebp - 0xf0]
call fcn.004036b1
push ebx
push 1
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004036b1
push str._LCID_
lea ecx, [ebp - 0xd4]
call fcn.00403558
movzx eax, word [ebp + 0xc]
push eax
sub esp, 0x1c
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x88], esp
push eax
lea esi, [ebp - 0xd4]
call fcn.0040357d
lea eax, [ebp - 0xf0]
push eax
mov ecx, esi
call fcn.00405216
add esp, 0x24
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00403600
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0xf0]
call fcn.004036b1
push ebx
push esi
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 2
call fcn.004036b1
cmp byte [edi + 0x74], bl
je 0x40745a
push str.Global
lea ecx, [ebp - 0xf0]
call fcn.00403558
mov byte [ebp - 4], 8
mov dword [ebp - 0x90], esi
jmp 0x40745d
lea eax, [ebp - 0x2c]
mov edx, eax
lea eax, [ebp - 0x178]
call fcn.00402c96
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.004034e8
mov dword [ebp - 4], 0xa
test byte [ebp - 0x90], 1
je 0x407492
push ebx
push 1
lea ecx, [ebp - 0xf0]
call fcn.004036b1
cmp dword [edi + 0x70], 0x10
jb 0x40749d
mov eax, dword [edi + 0x5c]
jmp 0x4074a0
lea eax, [edi + 0x5c]
lea ecx, [ebp - 0x84]
push ecx
push 0x20019
push ebx
push eax
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40755d
cmp dword [ebp - 0x30], 0x10
push 4
pop eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x44]
jae 0x4074dd
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push ebx
push eax
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x84]
test eax, eax
jne 0x407557
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x98], ebx
jne 0x407553
push 6
pop esi
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004036b1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004036b1
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], bl
call fcn.00408883
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.00409286
mov eax, esi
call fcn.00427ba4
ret
xor esi, esi
jmp 0x40751b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x64]
call fcn.00404608
mov byte [ebp - 4], 0xb
cmp dword [edi + 0x70], 0x10
jb 0x407577
mov edi, dword [edi + 0x5c]
jmp 0x40757a
add edi, 0x5c
push ebx
lea eax, [ebp - 0x84]
push eax
push ebx
push 0xf003f
push ebx
push 0x4402e5
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, 0x441264
test eax, eax
jne 0x4075e6
push esi
lea ecx, [ebp - 0x64]
call fcn.00407900
neg eax
sbb eax, eax
neg eax
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x44]
jae 0x4075c1
lea eax, [ebp - 0x44]
push 4
lea ecx, [ebp - 0x88]
push ecx
push 4
push ebx
push eax
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea ecx, [ebp - 0x64]
call fcn.00407900
push ebx
lea ecx, [ebp - 0x64]
push 1
test eax, eax
jne 0x407603
call fcn.004036b1
jmp 0x407518
call fcn.004036b1
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004036b1
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004036b1
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0xac], eax
jbe 0x40763b
call fcn.0042516a
mov edi, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb8]
cmp edi, dword [ebp - 0xa8]
jbe 0x407654
call fcn.0042516a
push dword [ebp - 0x88]
lea eax, [ebp - 0x8c]
push esi
push edi
push dword [ebp - 0xb8]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00409b62
push dword [ebp - 0xa0]
call fcn.00424b14
pop ecx
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], bl
call fcn.00408883
xor esi, esi
jmp 0x407540