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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e2588
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x677000]
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.005bb1c0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.005bb1c0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.005bb1c0
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.005bb1c0
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 0x40337f
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 0x40323e
lea esp, [esp]
lea ecx, [ebp - 0x420]
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40317e
test dx, dx
je 0x40317a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40317e
add eax, 4
add ecx, 4
test dx, dx
jne 0x403158
xor eax, eax
jmp 0x403183
sbb eax, eax
or eax, 1
test eax, eax
je 0x403234
cmp dword [ebp + 0x24], 8
lea ecx, [ebp - 0x420]
push ecx
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
push 0x624274
push 0xffffffffffffffff
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.005b8769
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 0x403200
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 0x74e818
call fcn.005b8769
add esp, 0x18
push 0x74e818
call fcn.00418730
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 0x403150
jmp 0x40323e
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 0x403379
push dword [ebp - 0x840]
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push eax
push 0x624274
push 0xffffffffffffffff
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.005b8769
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 0x403372
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 0x4032e5
inc esi
cmp esi, 4
jl 0x4032b0
jmp 0x4032ef
mov dword [ebp - 0x844], 1
push dword [ebp - 0x838]
call edi
cmp dword [ebp - 0x844], 1
jne 0x403372
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.005b8769
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 0x40335c
xor ecx, ecx
jmp 0x4033ef
lea ecx, [ebp - 0x218]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403365
jmp 0x4033eb
xor bl, bl
jmp 0x403405
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.005b8769
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 0x4033d2
xor ecx, ecx
jmp 0x4033ef
lea ecx, [ebp - 0x218]
lea esi, [ecx + 2]
jmp 0x4033e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4033e0
sub ecx, esi
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, edx
call fcn.00406400
call fcn.00403440
mov bl, al
cmp dword [ebp + 0x24], 8
jb 0x403416
push dword [ebp + 0x10]
call fcn.0049500b
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.005b7f8f
mov esp, ebp
pop ebp
ret 0x20