Function at 0x10039734
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x83c], 0xd
mov dword [ebp - 4], 0
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x848], 0
lea eax, [ebp - 0x840]
push eax
push 0x20019
push 0
push 0x10112b48
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100398aa
mov dword [ebp - 0x848], 1
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
lea ecx, [ebp - 0x824]
push ecx
lea edx, [ebp - 0x80c]
push edx
push 0
push 0
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x870]
push ecx
mov edx, dword [ebp - 0x838]
push edx
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x100398aa
mov ecx, dword [ebp - 0x838]
add ecx, 1
mov dword [ebp - 0x838], ecx
push 0x10112b68
lea edx, [ebp - 0x870]
push edx
call fcn.100f0e40
add esp, 8
test eax, eax
je 0x10039891
movsx eax, byte [ebp - 0x870]
movsx ecx, byte [0x10112b78]
cmp eax, ecx
jne 0x10039847
push 0x10112b88
lea edx, [ebp - 0x870]
push edx
call fcn.100f2920
add esp, 8
test eax, eax
je 0x10039891
cmp dword [ebp + 0xc], 0
je 0x10039864
lea eax, [ebp - 0x870]
push eax
call fcn.100f1bf0
add esp, 4
mov dword [ebp - 0x878], eax
jmp 0x10039870
mov ecx, dword [ebp - 0x824]
mov dword [ebp - 0x878], ecx
mov edx, dword [ebp - 0x834]
add edx, dword [ebp - 0x878]
mov dword [ebp - 0x834], edx
mov eax, dword [ebp - 0x820]
add eax, 1
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
jmp 0x100397ba
mov ecx, dword [0x102f16ec]
mov dword [ebp - 0x830], ecx
jmp 0x100398c7
mov edx, dword [ebp - 0x830]
add edx, 4
mov dword [ebp - 0x830], edx
mov eax, dword [ebp - 0x830]
cmp dword [eax], 0
je 0x100399a5
push 0x5f
mov ecx, dword [ebp - 0x830]
mov edx, dword [ecx]
push edx
call fcn.100f29c0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100399a0
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
movsx edx, byte [0x10112b98]
cmp ecx, edx
jne 0x100399a0
mov eax, dword [ebp - 0x83c]
push eax
push 0x10112ba8
mov ecx, dword [ebp - 8]
push ecx
call fcn.100f1e20
add esp, 0xc
test eax, eax
jne 0x100399a0
mov edx, dword [ebp - 0x830]
mov eax, dword [edx]
movsx ecx, byte [eax]
movsx edx, byte [0x10112bb8]
cmp ecx, edx
jne 0x10039961
mov eax, dword [ebp - 0x83c]
add eax, 2
push eax
push 0x10112bc8
mov ecx, dword [ebp - 0x830]
mov edx, dword [ecx]
push edx
call fcn.100f1e20
add esp, 0xc
test eax, eax
je 0x100399a0
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x83c]
movsx ecx, byte [eax]
cmp ecx, 0x3d
jne 0x100399a0
mov edx, dword [ebp - 0x830]
mov eax, dword [edx]
push eax
call fcn.100f1bf0
add esp, 4
mov ecx, dword [ebp - 0x834]
add ecx, eax
mov dword [ebp - 0x834], ecx
mov edx, dword [ebp - 0x820]
add edx, 1
mov dword [ebp - 0x820], edx
jmp 0x100398b8
cmp dword [ebp - 0x820], 0
jne 0x100399b5
xor eax, eax
jmp 0x10039cf9
mov eax, dword [ebp - 0x834]
add eax, dword [ebp - 0x820]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003d3e0
add esp, 8
mov dword [ebp - 0x874], eax
mov edx, dword [ebp - 0x874]
mov dword [ebp - 0x844], edx
cmp dword [ebp - 0x848], 0
je 0x10039b39
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x80c]
push ecx
push 0
push 0
lea edx, [ebp - 0x82c]
push edx
lea eax, [ebp - 0x870]
push eax
mov ecx, dword [ebp - 0x838]
push ecx
mov edx, dword [ebp - 0x840]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x10039b2c
mov eax, dword [ebp - 0x838]
add eax, 1
mov dword [ebp - 0x838], eax
push 0x10112bd8
lea ecx, [ebp - 0x870]
push ecx
call fcn.100f0e40
add esp, 8
test eax, eax
je 0x10039b13
movsx edx, byte [ebp - 0x870]
movsx eax, byte [0x10112be8]
cmp edx, eax
jne 0x10039a9c
push 0x10112bf8
lea ecx, [ebp - 0x870]
push ecx
call fcn.100f2920
add esp, 8
test eax, eax
je 0x10039b13
mov edx, dword [ebp - 0x844]
cmp edx, dword [ebp - 0x874]
jbe 0x10039ac2
mov eax, dword [ebp - 0x844]
mov byte [eax], 0x3b
mov ecx, dword [ebp - 0x844]
add ecx, 1
mov dword [ebp - 0x844], ecx
cmp dword [ebp + 0xc], 0
je 0x10039ae0
lea edx, [ebp - 0x870]
push edx
mov eax, dword [ebp - 0x844]
push eax
call fcn.100f2830
add esp, 8
jmp 0x10039af6
lea ecx, [ebp - 0x80c]
push ecx
mov edx, dword [ebp - 0x844]
push edx
call fcn.100f2830
add esp, 8
mov eax, dword [ebp - 0x844]
push eax
call fcn.100f1bf0
add esp, 4
mov ecx, dword [ebp - 0x844]
add ecx, eax
mov dword [ebp - 0x844], ecx
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
jmp 0x10039a0b
mov edx, dword [ebp - 0x840]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x102f16ec]
mov dword [ebp - 0x830], eax
jmp 0x10039b55
mov ecx, dword [ebp - 0x830]
add ecx, 4
mov dword [ebp - 0x830], ecx
mov edx, dword [ebp - 0x830]
cmp dword [edx], 0
je 0x10039ce1
push 0x5f
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax]
push ecx
call fcn.100f29c0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10039cdc
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
movsx ecx, byte [0x10112c08]
cmp eax, ecx
jne 0x10039cdc
mov edx, dword [ebp - 0x83c]
push edx
push str._LICENSE_FILE
mov eax, dword [ebp - 8]
push eax
call fcn.100f1e20
add esp, 0xc
test eax, eax
jne 0x10039cdc
mov ecx, dword [ebp - 0x830]
mov edx, dword [ecx]
movsx eax, byte [edx]
movsx ecx, byte [0x10112c28]
cmp eax, ecx
jne 0x10039bf7
mov edx, dword [ebp - 0x83c]
add edx, 2
push edx
push 0x10112c38
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax]
push ecx
call fcn.100f1e20
add esp, 0xc
test eax, eax
je 0x10039cdc
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x83c]
movsx eax, byte [edx]
cmp eax, 0x3d
jne 0x10039cdc
mov ecx, dword [ebp - 0x844]
cmp ecx, dword [ebp - 0x874]
jbe 0x10039c32
mov edx, dword [ebp - 0x844]
mov byte [edx], 0x3b
mov eax, dword [ebp - 0x844]
add eax, 1
mov dword [ebp - 0x844], eax
cmp dword [ebp + 0xc], 0
jne 0x10039c7a
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x83c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
cmp eax, 0x3d
je 0x10039c5a
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x10039c65
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x10039c44
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x844]
push edx
call fcn.100f2830
add esp, 8
jmp 0x10039cbf
mov eax, dword [ebp - 0x830]
mov ecx, dword [ebp - 8]
sub ecx, dword [eax]
add ecx, dword [ebp - 0x83c]
push ecx
mov edx, dword [ebp - 0x830]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x844]
push ecx
call fcn.100f1710
add esp, 0xc
mov edx, dword [ebp - 0x830]
mov eax, dword [ebp - 8]
sub eax, dword [edx]
add eax, dword [ebp - 0x83c]
mov ecx, dword [ebp - 0x844]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x844]
push edx
call fcn.100f1bf0
add esp, 4
mov ecx, dword [ebp - 0x844]
add ecx, eax
mov dword [ebp - 0x844], ecx
jmp 0x10039b46
cmp dword [ebp - 4], 0
je 0x10039cf3
mov edx, dword [ebp - 4]
push edx
call fcn.1003d4b7
add esp, 4
mov eax, dword [ebp - 0x874]
mov esp, ebp
pop ebp
ret