Function at 0x4032b4
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x224], esi
call fcn.00403726
call fcn.0040323a
mov edi, eax
mov ebx, 0x20019
lea eax, [ebp - 0x228]
mov dword [ebp - 0x238], edi
push eax
push ebx
push esi
push 0x4011ac
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403371
mov eax, 0x40125c
cmp dword [0x4053ac], esi
jne 0x40333a
mov eax, 0x401264
lea ecx, [ebp - 0x210]
push ecx
push ebx
push esi
push eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403371
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
imul eax, dword [ebp - 0x224], 0x14
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x40539c], eax
test eax, eax
je 0x4036e4
mov eax, dword [ebp - 0x224]
mov ecx, esi
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], 0x104
test eax, eax
je 0x4036e9
mov ebx, esi
mov dword [ebp - 0x220], ebx
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4036e9
test edi, edi
je 0x4033fb
push 0x40126c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x4036bf
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x403404
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov eax, dword [0x40539c]
mov dword [ebx + eax], ecx
test ecx, ecx
je 0x4036bf
lea edx, [ebp - 0x20c]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x40343e
sub edx, edi
lea eax, [ebp - 0x20c]
sar edx, 1
push eax
inc edx
call fcn.004016d7
lea eax, [ebp - 0x214]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4036b9
mov eax, dword [0x40539c]
mov edx, 0x4012e8
mov ecx, dword [ebp - 0x214]
add eax, 4
add eax, ebx
push eax
call fcn.004029a6
mov eax, dword [0x40539c]
mov edi, esi
push 8
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x214]
push 0x40
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x218], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0x21c], ebx
test ebx, ebx
je 0x40354a
push 4
push ebx
push 0xffffffffffffffff
push 0x4012e4
push esi
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x218]
push eax
mov edx, ebx
call fcn.004029a6
mov ebx, dword [ebp - 0x218]
cmp eax, 1
jne 0x403516
mov ecx, ebx
call fcn.0040295f
mov edi, eax
test edi, edi
je 0x403528
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x234]
mov dword [eax + ecx + 8], edi
mov edi, esi
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x40353f
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x40354a
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x40539c]
mov edi, esi
push 0xc
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x214]
push 0x40
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0x230], ebx
test ebx, ebx
je 0x4035f7
push 6
push ebx
push 0xffffffffffffffff
push 0x4012dc
push esi
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
mov edx, ebx
call fcn.004029a6
mov ebx, dword [ebp - 0x218]
cmp eax, 1
jne 0x4035c3
mov ecx, ebx
call fcn.0040295f
mov edi, eax
test edi, edi
je 0x4035d5
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x234]
mov dword [eax + ecx + 0xc], edi
mov edi, esi
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x4035ec
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x4035f7
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [0x40539c]
mov ebx, dword [ebp - 0x220]
add edi, 4
add edi, ebx
cmp dword [edi], esi
jne 0x403682
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x403621
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [0x40539c]
mov ecx, eax
add edi, 4
add edi, ebx
mov dword [edi], ecx
test ecx, ecx
je 0x403682
lea edx, [ebp - 0x20c]
lea eax, [edx + 2]
mov dword [ebp - 0x21c], eax
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x403662
sub edx, dword [ebp - 0x21c]
lea eax, [ebp - 0x20c]
sar edx, 1
push eax
inc edx
call fcn.004016d7
push dword [ebp - 0x22c]
push dword [edi]
mov edi, dword [ebp - 0x244]
push esi
push 0x180
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0x19a
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
inc dword [ebp - 0x22c]
add ebx, 0x14
mov dword [ebp - 0x220], ebx
mov edi, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x240]
inc ecx
mov dword [ebp - 0x23c], 0x104
mov dword [ebp - 0x240], ecx
cmp ecx, dword [ebp - 0x224]
jb 0x4033b6
jmp 0x4036e9
mov esi, 0x8007000e
cmp dword [ebp - 0x210], 0
je 0x4036fe
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x228], 0
je 0x403713
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403dd0
mov esp, ebp
pop ebp
ret