Function at 0x402c00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce478
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x65a000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x840], edi
mov dword [ebp - 0x83c], eax
xor eax, eax
push 0x206
mov dword [ebp - 4], 0
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.005a7690
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.005a7690
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.005a7690
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.005a7690
add esp, 0xc
cmp dword [ebp + 0x24], 8
lea ecx, [ebp - 0x838]
push ecx
push 0x20019
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0x104
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x844], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402f7f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
push dword [ebp - 0x838]
mov dword [ebp - 0x834], 0x104
call ebx
test eax, eax
jne 0x402e3e
lea esp, [esp]
lea ecx, [ebp - 0x420]
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402d7e
test dx, dx
je 0x402d7a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402d7e
add eax, 4
add ecx, 4
test dx, dx
jne 0x402d58
xor eax, eax
jmp 0x402d83
sbb eax, eax
or eax, 1
test eax, eax
je 0x402e34
cmp dword [ebp + 0x24], 8
lea ecx, [ebp - 0x420]
push ecx
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
push 0x60e0d4
push 0xffffffffffffffff
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.005a4e29
add esp, 0x18
lea eax, [ebp - 0x628]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x402e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x628]
push eax
push str.CAlmInfo::AddNewAlmDataToReg__SHDeleteKey_HKEY_LOCAL_MACHINE___s____Failed:0x_08x
push 0xffffffffffffffff
push 0x1000
push 0x6fb428
call fcn.005a4e29
add esp, 0x18
push 0x6fb428
call fcn.00415fc0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x420]
push eax
inc esi
push esi
push dword [ebp - 0x838]
mov dword [ebp - 0x834], 0x104
call ebx
test eax, eax
je 0x402d50
jmp 0x402e3e
mov dword [ebp - 0x848], 1
push dword [ebp - 0x838]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
cmp dword [ebp - 0x848], 0
je 0x402f79
push dword [ebp - 0x840]
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
push 0x60e0d4
push 0xffffffffffffffff
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.005a4e29
add esp, 0x18
lea eax, [ebp - 0x838]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x830]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402f72
xor esi, esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
push dword [ebp - 0x838]
mov dword [ebp - 0x834], 0x104
call ebx
test eax, eax
jne 0x402ee5
inc esi
cmp esi, 4
jl 0x402eb0
jmp 0x402eef
mov dword [ebp - 0x844], 1
push dword [ebp - 0x838]
call edi
cmp dword [ebp - 0x844], 1
jne 0x402f72
cmp dword [ebp + 0x24], 8
push esi
push dword [ebp - 0x840]
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
push str._s_s_d
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005a4e29
add esp, 0x1c
xor eax, eax
push dword [ebp - 0x83c]
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [ebp - 0x218], ax
jne 0x402f5c
xor ecx, ecx
jmp 0x402fef
lea ecx, [ebp - 0x218]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402f65
jmp 0x402feb
xor bl, bl
jmp 0x403005
mov edi, dword [ebp - 0x840]
cmp dword [ebp + 0x24], 8
push edi
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
push str._s_s0
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005a4e29
add esp, 0x18
xor eax, eax
push dword [ebp - 0x83c]
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [ebp - 0x218], ax
jne 0x402fd2
xor ecx, ecx
jmp 0x402fef
lea ecx, [ebp - 0x218]
lea esi, [ecx + 2]
jmp 0x402fe0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402fe0
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, edx
call fcn.004058d0
call fcn.00403040
mov bl, al
cmp dword [ebp + 0x24], 8
jb 0x403016
push dword [ebp + 0x10]
call fcn.0048166b
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a4646
mov esp, ebp
pop ebp
ret 0x20