Function at 0x439330
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc38
mov eax, dword [esp + 0xc54]
mov edx, dword [esp + 0xc5c]
push ebx
push ebp
push esi
push edi
push 0x3ff
mov dword [esp + 0x34], eax
mov ebp, ecx
mov ecx, dword [esp + 0xc6c]
push edx
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x844], 0
mov byte [esp + 0x444], 0
call fcn.00496440
lea eax, [esp + 0x44]
add esp, 0xc
mov byte [esp + 0x437], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439390
sub eax, edx
je 0x4393a8
cmp byte [esp + eax + 0x37], 0x5c
lea eax, [esp + eax + 0x37]
jne 0x4393a8
mov byte [eax], cl
mov edx, dword [0x4b7a70]
mov eax, dword [edx + 0xb0]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push ecx
or eax, 9
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x439798
push eax
mov edx, dword [esp + 0x14]
push eax
push eax
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x43978d
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x4b7a70]
mov ebx, dword [esp + 0xc4c]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x439570
cmp dword [esp + 0xc5c], 2
je 0x439570
mov dword [esp + 0x83c], 0
mov dword [esp + 0x840], 0
lea edi, [eax - 1]
push 0
push 0
lea edx, [esp + 0x840]
push edx
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x44c]
push ecx
push edi
push edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], 0x400
mov byte [esp + 0x458], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x439538
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x30]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp + 0x14]
cmp byte [ecx], 0x75
jne 0x4394bf
mov ecx, dword [ecx + 0x14]
lea edx, [esp + 0x14]
push edx
push ebx
push 2
call fcn.00431e50
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
cmp eax, ecx
je 0x43949c
jmp 0x4394d6
lea eax, [esp + 0x14]
push eax
push ebx
push 3
call fcn.00431e50
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
test eax, eax
je 0x439506
cmp esi, 6
jne 0x439542
cmp eax, ebp
je 0x439510
mov edx, dword [esp + 0xc54]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc38
ret 0x24
cmp esi, 1
je 0x439510
cmp esi, 6
jne 0x439556
mov esi, dword [esp + 0xc58]
test esi, esi
je 0x43952c
lea edi, [esp + 0x18]
call fcn.00438750
test al, al
jne 0x439552
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add dword [eax + 8], 1
adc dword [eax + 0xc], 0
test edi, edi
je 0x439570
dec edi
jmp 0x439446
cmp eax, ebp
jne 0x4394e3
mov ecx, dword [esp + 0xc50]
mov byte [ecx], 1
jmp 0x4394ec
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc38
ret 0x24
mov eax, dword [esp + 0x28]
test eax, eax
je 0x43978d
cmp dword [esp + 0xc5c], 1
jne 0x439594
cmp byte [esp + 0xc60], 0
je 0x43978d
mov dword [esp + 0x838], 0xfffffffe
lea edx, [esp + 0x83c]
push edx
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
dec eax
lea edx, [esp + 0x44c]
push edx
push eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x44], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x439745
cmp dword [esp + 0xc5c], 1
je 0x4396a0
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp + 0x14]
cmp byte [ecx], 0x75
jne 0x43961f
mov ecx, dword [ecx + 0x14]
lea eax, [esp + 0x14]
push eax
push ebx
push 2
call fcn.00431e50
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
cmp eax, ecx
je 0x4395fc
jmp 0x439636
lea edx, [esp + 0x14]
push edx
push ebx
push 3
call fcn.00431e50
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
test eax, eax
je 0x43966a
cmp esi, 6
jne 0x439758
cmp eax, ebp
je 0x439678
mov ecx, dword [esp + 0xc54]
mov dword [ecx], eax
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc38
ret 0x24
cmp esi, 1
je 0x439678
cmp esi, 6
jne 0x439773
mov esi, dword [esp + 0xc58]
test esi, esi
je 0x439694
lea edi, [esp + 0x18]
call fcn.00438750
test al, al
jne 0x43976f
mov eax, dword [esp + 0x20]
add dword [eax + 8], 1
adc dword [eax + 0xc], 0
cmp byte [esp + 0xc60], 0
je 0x439745
cmp byte [esp + 0x38], 0
mov eax, 0x4aaf8c
jne 0x4396bf
mov eax, 0x4a78b1
lea ecx, [esp + 0x438]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
push str._s_s_s
mov esi, 0x400
lea edi, [esp + 0x858]
call fcn.0047fde0
mov ecx, dword [esp + 0xc78]
mov edx, dword [esp + 0xc74]
add esp, 0x10
mov eax, edi
mov edi, dword [esp + 0xc50]
push eax
mov eax, dword [esp + 0xc64]
push ecx
mov ecx, dword [esp + 0xc64]
push edx
mov edx, dword [esp + 0xc64]
push eax
mov eax, dword [esp + 0xc64]
push ecx
push edx
push eax
push edi
push ebx
mov ecx, ebp
call fcn.00439330
mov esi, eax
cmp esi, 1
jne 0x439556
cmp byte [edi], 0
jne 0x439751
mov ecx, dword [esp + 0xc54]
cmp dword [ecx], 0
jne 0x439751
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x43959f
mov edx, dword [esp + 0x10]
push edx
jmp 0x439792
cmp eax, ebp
jne 0x439647
mov edx, dword [esp + 0xc50]
mov byte [edx], 1
jmp 0x439650
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc38
ret 0x24
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc38
ret 0x24