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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
lea edi, [ebp - 0x14]
xor eax, eax
push ebp
push 0x43e3fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004044fc
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x43e40c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43e3d3
xor ebx, ebx
lea eax, [ebp - 0x420]
mov edx, 0x400
call fcn.00406a5c
mov dword [edi], 0x400
push 0
push 0
push 0
push 0
push edi
lea eax, [ebp - 0x420]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x43e3ca
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x428]
lea edx, [ebp - 0x420]
mov ecx, 0x400
call fcn.0040476c
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x424]
mov edx, 0x43e450
call fcn.00404808
mov eax, dword [ebp - 0x424]
call fcn.004049bc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43e1a4
lea eax, [ebp - 0x420]
mov edx, 0x400
call fcn.00406a5c
mov dword [edi], 0x400
push edi
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0x43e48c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43e3bb
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x420]
mov ecx, 0x400
call fcn.0040476c
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x42c]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x43e4a0
call fcn.00404808
mov eax, dword [ebp - 0x42c]
call fcn.004049bc
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x43e3bb
mov dword [ebp - 0x18], 0x10114
push 0
push edi
push 4
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x170002
push esi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x43e3b5
cmp dword [ebp - 0x10], 0
jne 0x43e3b5
lea eax, [ebp - 0x420]
mov edx, 0x400
call fcn.00406a5c
mov dword [edi], 0x400
mov dword [ebp - 0x18], 0x1010101
push 0
push edi
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x420]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x170002
push esi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x43e3b5
lea eax, [ebp - 0x20]
call fcn.004044fc
mov ebx, dword [edi]
dec ebx
test ebx, ebx
jl 0x43e388
inc ebx
xor edi, edi
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
add eax, edi
movzx eax, byte [eax]
mov dword [ebp - 0x438], eax
mov byte [ebp - 0x434], 0
lea edx, [ebp - 0x438]
xor ecx, ecx
mov eax, 0x43e4b0
call fcn.00408c80
mov edx, dword [ebp - 0x430]
lea eax, [ebp - 0x20]
call fcn.004047c4
inc edi
dec ebx
jne 0x43e345
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x20]
call fcn.004047bc
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x20]
call fcn.00404a1c
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x43e3ca
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
inc ebx
jmp 0x43e1a4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e405
lea eax, [ebp - 0x430]
mov edx, 4
call fcn.00404520
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404520
ret