Function at 0x4231c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov edi, edx
mov esi, ecx
lea ebx, [ebp - 0x1c]
lea eax, [0x5385ef]
mov dword [ebp - 0x18], 0x5385c3
mov dword [ebp - 0x14], eax
mov word [ebp - 0x10], 0
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00419040
add esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
add eax, edi
mov dword [ebp - 0x14], eax
mov word [ebp - 0x10], 0
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.00419040
add esp, 8
mov edi, dword [ebp - 0x58]
call fcn.0043bec0
mov dword [ebp - 0x1c], eax
push ebx
push 0x20019
push 0
push edi
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x423274
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x42325e
add eax, eax
push 2
push eax
push dword [ebp - 0x4c]
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4234a9
add eax, eax
push 2
push eax
push edi
jmp 0x4234a1
mov eax, dword [0x55bd94]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 0x800
mov ebx, dword [ebp - 0x1c]
movzx eax, byte [eax]
push 1
push 0x800
call fcn.0040d1d0
add esp, 8
test eax, eax
je 0x4234c5
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x44], 0x800
mov edi, eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push ecx
push edi
push eax
push 0
push esi
mov dword [ebp - 0x30], ebx
push ebx
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42339d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
push ecx
call fcn.004480f0
add esp, 4
cmp eax, 0x800700ea
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], 1
jne 0x42340c
lea ebx, [ebp - 0x28]
nop dword [eax + eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], 0x800700ea
mov dword [ebp - 0x24], edx
test ecx, ecx
mov dword [ebp - 0x3c], eax
jne 0x423386
test edx, edx
je 0x423337
lea eax, [ebp - 0x24]
push eax
call fcn.00447ed0
add esp, 4
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push eax
push edi
push ebx
push 0
push esi
push dword [ebp - 0x30]
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x42339d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
push ecx
call fcn.004480f0
add esp, 4
cmp eax, 0x800700ea
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], 1
je 0x423310
jmp 0x42340c
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00423e90
add esp, 0xc
mov edx, dword [ebp - 0x24]
test edx, edx
jne 0x42332b
jmp 0x423337
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
mov ebx, ecx
mov eax, ecx
and ebx, 0xfffffffe
shr eax, 2
add ebx, edi
bt ecx, 1
adc eax, 0
jne 0x4234b1
lea eax, [ebp - 0x28]
mov word [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00410300
add esp, 8
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
xor edx, edx
test ebx, ebx
je 0x423456
nop dword [eax]
cmp byte [ecx + ebx - 1], 0
jne 0x423454
dec ebx
jne 0x423400
jmp 0x423456
mov eax, dword [ebp - 0x34]
test edx, edx
mov dword [eax], 0x80000000
je 0x423425
lea eax, [ebp - 0x14]
push eax
call fcn.00447ed0
add esp, 4
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x42343b
push 1
push eax
push edi
call fcn.0040d1e0
add esp, 0xc
push esi
call sub.advapi32.dll_RegCloseKey
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x42324e
jmp 0x42325e
mov edx, ebx
mov ebx, dword [ebp - 0x34]
mov dword [ebx], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov ebx, dword [ebp - 0x38]
test eax, eax
je 0x423477
push 1
push eax
push edi
call fcn.0040d1e0
add esp, 0xc
push dword [ebp - 0x30]
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x423494
add eax, eax
push 2
push eax
push esi
call fcn.0040d1e0
add esp, 0xc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4234a9
add eax, eax
push 2
push eax
push ebx
call fcn.0040d1e0
add esp, 0xc
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.00423e90
add esp, 0xc
jmp 0x4233ce
push 0x800
push 1
call fcn.004d09f0
nop
nop
nop
nop
nop
nop
nop
nop