Function at 0x403781
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
push ebx
push esi
push edi
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 0x477254
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4038c5
mov dword [ebp - 0x848], 1
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push 0
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x870]
push eax
mov eax, dword [ebp - 0x838]
push eax
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4038c5
inc dword [ebp - 0x838]
push 0x477274
lea eax, [ebp - 0x870]
push eax
call fcn.004416c0
add esp, 8
test eax, eax
je 0x4038ac
movsx eax, byte [0x477284]
movsx ecx, byte [ebp - 0x870]
cmp eax, ecx
jne 0x40389a
push 0x477294
lea eax, [ebp - 0x870]
push eax
call fcn.00440db0
add esp, 8
test eax, eax
je 0x4038ac
mov eax, dword [ebp - 0x824]
add dword [ebp - 0x834], eax
inc dword [ebp - 0x820]
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
jmp 0x40380a
mov eax, dword [0x484154]
mov dword [ebp - 0x830], eax
jmp 0x4038dc
add dword [ebp - 0x830], 4
mov eax, dword [ebp - 0x830]
cmp dword [eax], 0
je 0x4039ba
push 0x5f
mov eax, dword [ebp - 0x830]
mov eax, dword [eax]
push eax
call fcn.00441470
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4039b5
movsx eax, byte [0x4772a4]
mov ecx, dword [ebp - 8]
movsx ecx, byte [ecx]
cmp eax, ecx
jne 0x4039b5
mov eax, dword [ebp - 0x83c]
push eax
push 0x4772b4
mov eax, dword [ebp - 8]
push eax
call fcn.00441530
add esp, 0xc
test eax, eax
jne 0x4039b5
mov eax, dword [ebp - 0x830]
mov eax, dword [eax]
movsx eax, byte [eax]
movsx ecx, byte [0x4772c4]
cmp eax, ecx
jne 0x403982
mov eax, dword [ebp - 0x83c]
add eax, 2
push eax
push 0x4772d4
mov eax, dword [ebp - 0x830]
mov eax, dword [eax]
push eax
call fcn.00441530
add esp, 0xc
test eax, eax
je 0x4039b5
mov eax, dword [ebp - 0x83c]
mov ecx, dword [ebp - 8]
movsx eax, byte [eax + ecx]
cmp eax, 0x3d
jne 0x4039b5
mov eax, dword [ebp - 0x830]
mov eax, dword [eax]
push eax
call fcn.00440880
add esp, 4
add dword [ebp - 0x834], eax
inc dword [ebp - 0x820]
jmp 0x4038d5
cmp dword [ebp - 0x820], 0
jne 0x4039ce
xor eax, eax
jmp 0x403c97
mov eax, dword [ebp - 0x834]
add eax, dword [ebp - 0x820]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040c9f0
add esp, 8
mov dword [ebp - 0x874], eax
mov eax, dword [ebp - 0x874]
mov dword [ebp - 0x844], eax
cmp dword [ebp - 0x848], 0
je 0x403b26
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push 0
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x870]
push eax
mov eax, dword [ebp - 0x838]
push eax
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x403b19
inc dword [ebp - 0x838]
push 0x4772e4
lea eax, [ebp - 0x870]
push eax
call fcn.004416c0
add esp, 8
test eax, eax
je 0x403b00
movsx eax, byte [0x4772f4]
movsx ecx, byte [ebp - 0x870]
cmp eax, ecx
jne 0x403ab4
push 0x477304
lea eax, [ebp - 0x870]
push eax
call fcn.00440db0
add esp, 8
test eax, eax
je 0x403b00
mov eax, dword [ebp - 0x874]
cmp dword [ebp - 0x844], eax
jbe 0x403ad5
mov eax, dword [ebp - 0x844]
mov byte [eax], 0x3b
inc dword [ebp - 0x844]
lea eax, [ebp - 0x80c]
push eax
mov eax, dword [ebp - 0x844]
push eax
call fcn.00440fa0
add esp, 8
mov eax, dword [ebp - 0x844]
push eax
call fcn.00440880
add esp, 4
add dword [ebp - 0x844], eax
mov dword [ebp - 0x82c], 0x27
mov dword [ebp - 0x824], 0x800
jmp 0x403a24
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x484154]
mov dword [ebp - 0x830], eax
jmp 0x403b3d
add dword [ebp - 0x830], 4
mov eax, dword [ebp - 0x830]
cmp dword [eax], 0
je 0x403c76
push 0x5f
mov eax, dword [ebp - 0x830]
mov eax, dword [eax]
push eax
call fcn.00441470
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403c71
movsx eax, byte [0x477314]
mov ecx, dword [ebp - 8]
movsx ecx, byte [ecx]
cmp eax, ecx
jne 0x403c71
mov eax, dword [ebp - 0x83c]
push eax
push str._LICENSE_FILE
mov eax, dword [ebp - 8]
push eax
call fcn.00441530
add esp, 0xc
test eax, eax
jne 0x403c71
mov eax, dword [ebp - 0x830]
mov eax, dword [eax]
movsx eax, byte [eax]
movsx ecx, byte [0x477334]
cmp eax, ecx
jne 0x403be3
mov eax, dword [ebp - 0x83c]
add eax, 2
push eax
push 0x477344
mov eax, dword [ebp - 0x830]
mov eax, dword [eax]
push eax
call fcn.00441530
add esp, 0xc
test eax, eax
je 0x403c71
mov eax, dword [ebp - 0x83c]
mov ecx, dword [ebp - 8]
movsx eax, byte [eax + ecx]
cmp eax, 0x3d
jne 0x403c71
mov eax, dword [ebp - 0x83c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x874]
cmp dword [ebp - 0x844], eax
jbe 0x403c23
mov eax, dword [ebp - 0x844]
mov byte [eax], 0x3b
inc dword [ebp - 0x844]
mov eax, dword [ebp - 8]
movsx eax, byte [eax]
cmp eax, 0x3d
je 0x403c41
mov eax, dword [ebp - 8]
movsx eax, byte [eax]
cmp eax, 0x20
jne 0x403c49
inc dword [ebp - 8]
jmp 0x403c23
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x844]
push eax
call fcn.00440fa0
add esp, 8
mov eax, dword [ebp - 0x844]
push eax
call fcn.00440880
add esp, 4
add dword [ebp - 0x844], eax
jmp 0x403b36
cmp dword [ebp - 4], 0
je 0x403c8c
mov eax, dword [ebp - 4]
push eax
call fcn.0040cabe
add esp, 4
mov eax, dword [ebp - 0x874]
jmp 0x403c97
pop edi
pop esi
pop ebx
leave
ret