Function at 0x40a24c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8144
call fcn.0041cd70
lea eax, [ebp - 0x40]
push ebx
push eax
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x425790
mov dword [ebp - 8], ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40a4b7
push esi
push edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40a4ac
cmp dword [ebp - 0x14], ebx
je 0x40a4ac
mov edx, 0xfff
lea edi, [ebp - 0x4143]
mov ecx, edx
mov byte [ebp - 0x4144], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x8143]
mov byte [ebp - 0x8144], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x143]
mov byte [ebp - 0x144], bl
cmp dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 1], bl
mov byte [ebp - 2], bl
mov dword [ebp - 0x10], ebx
jbe 0x40a4ac
mov esi, 0x425710
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0x3fff
push eax
lea eax, [ebp - 0x144]
push eax
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
lea eax, [ebp - 0x4144]
push eax
mov dword [ebp - 0x28], 0x104
push dword [ebp - 0x10]
mov byte [ebp - 0x4144], bl
mov byte [ebp - 0x144], bl
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea eax, [ebp - 0x144]
lea ecx, [ebp - 0x24]
push eax
call fcn.004022f5
cmp word [0x425710], bx
mov dword [ebp - 0x24], 0x422424
mov eax, esi
je 0x40a370
inc eax
inc eax
cmp word [eax], bx
jne 0x40a369
sub eax, esi
lea ecx, [ebp - 0x24]
sar eax, 1
push eax
push esi
push ebx
call fcn.0040cc9a
cmp word [0x425710], bx
mov eax, esi
je 0x40a391
inc eax
inc eax
cmp word [eax], bx
jne 0x40a38a
sub eax, esi
lea ecx, [ebp - 0x24]
sar eax, 1
push eax
push esi
call fcn.00402a9c
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x30]
push eax
call fcn.00410ad0
pop ecx
test al, al
pop ecx
je 0x40a3cd
lea eax, [ebp - 0x4144]
mov byte [ebp - 1], 1
push eax
lea eax, [ebp - 0x8144]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x24]
add edi, 0x10
push eax
push edi
call fcn.00410ad0
pop ecx
test al, al
pop ecx
je 0x40a3e4
mov byte [ebp - 2], 1
lea ecx, [ebp - 0x24]
call fcn.0040166e
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x40a30a
cmp byte [ebp - 1], bl
je 0x40a4ac
cmp byte [ebp - 2], bl
je 0x40a41a
mov ecx, dword [ebp - 8]
lea eax, [ecx + 0x30]
push eax
call fcn.0040a1b3
jmp 0x40a4ac
lea eax, [ebp - 0x24]
mov ecx, 0x428ca8
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], 0x422420
call fcn.0040a4ba
cmp dword [ebp - 0x18], ebx
je 0x40a44c
push dword [ebp - 0x18]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
test eax, eax
jne 0x40a45a
mov ecx, dword [ebp - 8]
lea eax, [ecx + 0x30]
push eax
call fcn.0040a1b3
jmp 0x40a4a4
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x1c]
cmp eax, ebx
jne 0x40a468
xor eax, eax
jmp 0x40a46b
push eax
call esi
add edi, 0x10
inc eax
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x104
mov byte [ebp - 0x38], bl
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
call fcn.004016d3
push eax
push 1
lea eax, [ebp - 0x8144]
push ebx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x3c]
call fcn.004016ac
lea ecx, [ebp - 0x24]
call fcn.004016fd
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret