Function at 0x414230
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x414250
mov cl, byte [esi + 0xc]
test cl, cl
je 0x414250
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esi + 0xc], 0
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41428d
push str.Cant_open_registry_key.
lea ecx, [esp + 0x28]
call fcn.00413fb0
push 0x458e30
lea edx, [esp + 0x28]
push edx
call fcn.0043c34f
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push eax
mov dword [esp + 0x28], 4
call ebp
test eax, eax
je 0x4142e2
cmp eax, 0xea
je 0x4142e2
push str.Cant_read_registry_value.
lea ecx, [esp + 0x30]
call fcn.00413fb0
push 0x458e30
lea ecx, [esp + 0x30]
push ecx
call fcn.0043c34f
mov ecx, dword [esp + 0x14]
cmp ecx, 1
je 0x414324
cmp ecx, 4
je 0x41430d
push str.Unsupported_registry_type.
lea ecx, [esp + 0x30]
call fcn.00413fb0
push 0x458e30
lea edx, [esp + 0x30]
push edx
call fcn.0043c34f
test eax, eax
jne 0x414456
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov dword [esi + 4], 0
jmp 0x41439c
mov eax, dword [esp + 0x10]
add eax, 0xa
push eax
mov dword [esi], 0
mov dword [esp + 0x14], eax
call fcn.0043bc93
mov ecx, dword [esp + 0x14]
mov edx, ecx
mov edi, eax
shr ecx, 2
xor eax, eax
mov dword [esi + 4], edi
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push ecx
call ebp
test eax, eax
je 0x414394
push str.Cant_read_string_value_from_registry.
lea ecx, [esp + 0x30]
call fcn.00413fb0
push 0x458e30
lea edx, [esp + 0x30]
push edx
call fcn.0043c34f
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov dword [esi + 8], ecx
je 0x4143ea
test eax, eax
je 0x4143ba
push eax
call fcn.0043c389
add esp, 4
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4143c0
sub eax, edx
add eax, 0xa
push eax
call fcn.0043bc93
add esp, 4
mov dword [esi + 0x18], eax
mov ecx, ebx
mov edx, eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4143e0
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x41443a
test eax, eax
je 0x4143fe
push eax
call fcn.0043c389
add esp, 4
test edi, edi
jne 0x414407
mov dword [esi + 0x1c], edi
jmp 0x41443a
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414410
sub eax, edx
add eax, 0xa
push eax
call fcn.0043bc93
add esp, 4
mov dword [esi + 0x1c], eax
mov ecx, edi
mov edx, eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x414430
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
mov dword [esi + 0x10], 1
pop esi
pop ebx
add esp, 0x10
ret 0xc
push str.You_shold_never_catch_this_exception.
lea ecx, [esp + 0x30]
call fcn.00413fb0
push 0x458e30
lea edx, [esp + 0x30]
push edx
call fcn.0043c34f
int3