Function at 0x43f250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d4c
xor eax, eax
push ebp
push 0x43f5e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.004048cc
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x43f5fc
call fcn.00404e4c
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404dc4
mov eax, dword [ebp - 0x3c]
call fcn.0043f118
mov esi, eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x43f2d1
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x43f5fc
call fcn.00404e4c
mov edx, eax
inc edx
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.00404dc4
mov eax, dword [ebp - 0x40]
call fcn.00404d5c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43f5bd
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, 0x3fff
call fcn.00402e30
mov edi, eax
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push edi
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0x28]
call fcn.00402e30
mov esi, eax
mov dword [ebp - 0x24], 0x3fff
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push edi
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x43f58d
lea eax, [ebp - 0xc]
call fcn.004048cc
cmp dword [ebp - 0x2c], 4
jne 0x43f3d6
mov dword [ebp - 0x34], esi
push 0x43f608
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x44]
mov eax, 8
call fcn.004086a4
push dword [ebp - 0x44]
push 0x43f614
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.00408654
push dword [ebp - 0x48]
push 0x43f620
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00404c60
jmp 0x43f488
cmp dword [ebp - 0x2c], 3
jne 0x43f441
cmp dword [ebp - 0x28], 0
jne 0x43f3f4
lea eax, [ebp - 0xc]
mov edx, 0x43f62c
call fcn.00404964
jmp 0x43f488
mov eax, dword [ebp - 0x28]
dec eax
test eax, eax
jl 0x43f488
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
push dword [ebp - 0xc]
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
movzx eax, byte [esi + eax]
mov edx, 2
call fcn.0040867c
push dword [ebp - 0x4c]
push 0x43f640
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c60
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x43f40b
jmp 0x43f488
cmp dword [ebp - 0x2c], 7
jne 0x43f47e
mov eax, dword [ebp - 0x28]
dec eax
test eax, eax
jl 0x43f472
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
cmp byte [esi + eax], 0
jne 0x43f46a
mov eax, dword [ebp - 0x30]
mov byte [esi + eax], 0x20
inc dword [ebp - 0x30]
dec dword [ebp - 0x38]
jne 0x43f45a
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00404ac4
jmp 0x43f488
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00404ac4
cmp byte [edi], 0
jne 0x43f49c
lea eax, [ebp - 0x10]
mov edx, 0x43f64c
call fcn.00404964
jmp 0x43f4a6
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404ac4
mov eax, dword [ebp - 0x2c]
cmp eax, 7
ja case.default.0x43f4b2
jmp dword [eax*4 + 0x43f4b9]
lea eax, [ebp - 8]
mov edx, 0x43f65c
call fcn.00404964
jmp case.default.0x43f4b2
lea eax, [ebp - 8]
mov edx, 0x43f670
call fcn.00404964
jmp case.default.0x43f4b2
lea eax, [ebp - 8]
mov edx, 0x43f684
call fcn.00404964
jmp case.default.0x43f4b2
lea eax, [ebp - 8]
mov edx, 0x43f6a4
call fcn.00404964
jmp case.default.0x43f4b2
lea eax, [ebp - 8]
mov edx, 0x43f6bc
call fcn.00404964
jmp case.default.0x43f4b2
lea eax, [ebp - 8]
mov edx, 0x43f6d0
call fcn.00404964
jmp case.default.0x43f4b2
lea eax, [ebp - 8]
mov edx, 0x43f6e8
call fcn.00404964
jmp case.default.0x43f4b2
lea eax, [ebp - 8]
mov edx, 0x43f6fc
call fcn.00404964
cmp dword [ebp - 0xc], 0
jne 0x43f562
lea eax, [ebp - 0xc]
mov edx, 0x43f640
call fcn.00404964
push dword [ebp - 0x14]
push 0x43f70c
push dword [ebp - 0x10]
push 0x43f718
push dword [ebp - 8]
push 0x43f718
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
mov edx, 7
call fcn.00404c60
inc dword [ebp - 0x20]
mov eax, esi
call fcn.00402e4c
test ebx, ebx
je 0x43f321
cmp dword [ebp - 0x14], 0
je 0x43f5ad
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00404920
mov eax, edi
call fcn.00402e4c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f5ec
lea eax, [ebp - 0x4c]
mov edx, 5
call fcn.004048f0
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004048f0
ret