Function at 0x4234a9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
xor ecx, ecx
xor edx, edx
inc edx
mov dword [ebp - 0x324], ecx
mov dword [ebp - 0x330], edx
mov dword [ebp - 0x320], ecx
push edi
mov edi, ecx
test esi, esi
jne 0x4234ec
mov eax, 0x80004003
jmp 0x42386f
test ebx, ebx
je 0x423578
mov ecx, ebx
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4234fb
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 1]
push eax
mov dword [ebp - 0x328], eax
call fcn.0044183a
mov dword [ebp - 0x320], eax
pop ecx
test eax, eax
jne 0x423532
mov eax, 0x8007000e
jmp 0x42386f
xor ecx, ecx
mov edi, 0x80004005
push ecx
push ecx
push dword [ebp - 0x328]
push eax
push 0xffffffffffffffff
push ebx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, 0x200
test eax, eax
je 0x423567
push dword [ebp - 0x320]
mov edx, ebx
mov ecx, esi
xor edi, edi
call fcn.0041c6b9
push dword [ebp - 0x320]
call fcn.00441807
pop ecx
jmp 0x423625
lea eax, [ebp - 0x324]
mov ebx, 0x200
push eax
push edx
push ecx
push 0x4017c0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x328], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4235f2
lea eax, [ebp - 0x328]
push eax
push esi
lea eax, [ebp - 0x330]
push eax
xor eax, eax
push eax
push 0x4058b4
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4235de
inc eax
cmp dword [ebp - 0x330], eax
jne 0x4235de
mov dword [ebp - 0x320], eax
xor eax, eax
mov byte [esi + 0x1ff], al
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x320], edi
jne 0x42363e
push ebx
push esi
push 0x277e
push dword [0x443af0]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
jne 0x42363e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x42361a
push 0x57
pop edi
test edi, edi
jle 0x423625
movzx edi, di
or edi, 0x80070000
test edi, edi
jns 0x42363e
push edi
push 0x405900
push 2
call fcn.0041ea5f
add esp, 0xc
jmp 0x42386d
push 0x4058c0
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
jne 0x4236a3
push 0x4058c4
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
jne 0x4236a3
push 0x4058cc
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
jne 0x4236a3
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x423679
sub ecx, edx
je 0x423695
cmp ecx, ebx
jae 0x423695
cmp byte [ecx + esi - 1], 0x2f
je 0x423695
mov word [ecx + esi], 0x2f
push 0x407424
mov edx, ebx
mov ecx, esi
call fcn.0041dc6a
push 0x4058c0
push esi
call dword [sym.imp.msvcrt.dll_strstr]
pop ecx
pop ecx
test eax, eax
jne 0x4236c3
push 0x4058c0
mov edx, ebx
mov ecx, esi
call fcn.0041dc6a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4236c8
sub ecx, edx
mov eax, ebx
sub eax, ecx
push eax
mov dword [ebp - 0x32c], eax
call fcn.0041fb3c
mov dword [ebp - 0x320], eax
pop ecx
test eax, eax
je 0x42386d
xor eax, eax
mov edx, ebx
push 0x4058d4
mov ecx, esi
mov dword [ebp - 0x328], eax
call fcn.0041dc6a
mov eax, dword [ebp - 0x32c]
add eax, 0xfffffff6
mov dword [ebp - 0x32c], eax
cmp eax, 0xffffffff
jae 0x4237fc
call fcn.0041fb3c
mov ecx, eax
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push 0x407308
lea eax, [ebp - 0x31c]
push 0x208
push eax
call fcn.0040c0f9
add esp, 0x14
test eax, eax
js 0x4237fc
mov eax, dword [ebp - 0x32c]
mov dword [ebp - 0x32c], eax
lea eax, [ebp - 0x324]
push eax
push 1
xor eax, eax
push eax
lea eax, [ebp - 0x31c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4237fc
lea eax, [ebp - 0x32c]
push eax
push dword [ebp - 0x320]
lea eax, [ebp - 0x330]
push eax
xor eax, eax
push eax
push 0x4058e0
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4237e7
cmp dword [ebp - 0x330], 1
jne 0x4237e7
push 0x4058ec
mov edx, ebx
mov ecx, esi
call fcn.0041dc6a
push dword [ebp - 0x320]
mov edx, ebx
mov ecx, esi
call fcn.0041dc6a
push 0x4058f8
mov edx, ebx
mov ecx, esi
call fcn.0041dc6a
mov dword [ebp - 0x328], 1
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x328], 0
jne 0x423861
mov edx, 0x104
lea ecx, [ebp - 0x31c]
call fcn.00422b05
test eax, eax
je 0x423861
xor ecx, ecx
lea eax, [ebp - 0x114]
push ecx
push ecx
mov edx, 0x104
push edx
push eax
push edx
lea eax, [ebp - 0x31c]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x423861
push 0x4058ec
mov edx, ebx
mov ecx, esi
call fcn.0041dc6a
lea eax, [ebp - 0x114]
mov edx, ebx
push eax
mov ecx, esi
call fcn.0041dc6a
push 0x4058f8
mov edx, ebx
mov ecx, esi
call fcn.0041dc6a
push dword [ebp - 0x320]
call fcn.00441807
pop ecx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 4