Function at 0x40b7c1
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452f06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x498
push ebx
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [0x4686fc], 8
mov eax, dword [0x4686e8]
push esi
push edi
jae 0x40b7fe
mov eax, 0x4686e8
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
push eax
push dword [0x468670]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bc2f
push dword [esp + 0x18]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x7c]
push eax
call fcn.0040db58
pop ecx
pop ecx
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x4b0], ebx
call fcn.0040a39c
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xb4]
push eax
mov byte [esp + 0x4c4], 1
mov dword [esp + 0x48], ebx
push ebx
jmp 0x40bb5c
lea eax, [esp + 0x20]
push eax
push 0xf003f
push ebx
lea eax, [esp + 0xac]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b8ab
lea eax, [esp + 0xa0]
push eax
push 0x459054
push 8
push dword [0x468678]
call fcn.00429300
add esp, 0x10
jmp 0x40bb43
push dword [esp + 0x20]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x58]
push eax
call fcn.0040db58
pop ecx
pop ecx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2a4]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push str.LocalPath
push dword [esp + 0x34]
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bb38
xor edi, edi
inc edi
cmp dword [esp + 0x14], edi
jne 0x40bb38
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1a4]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push str.ModifyTime
push dword [esp + 0x34]
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bb38
cmp dword [esp + 0x14], edi
jne 0x40bb38
push 4
pop esi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push str.Length
push dword [esp + 0x34]
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bb38
cmp dword [esp + 0x14], esi
jne 0x40bb38
lea eax, [esp + 0x54]
push eax
call fcn.0040db6b
pop ecx
lea eax, [esp + 0x2a0]
push eax
call fcn.004195dd
pop ecx
test al, al
je 0x40b9e6
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040162e
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x4b0], 2
push dword [esp + 0x28]
or dword [esp + 0x24], edi
lea eax, [esp + 0x2a8]
push eax
call fcn.0041953f
add esp, 0xc
test al, al
jne 0x40b9e6
sub esp, 0x1c
lea eax, [esp + 0x1bc]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0040162e
call fcn.0040c52d
mov byte [esp + 0xf], bl
cmp al, bl
je 0x40b9eb
mov byte [esp + 0xf], 1
mov dword [esp + 0x4ac], edi
test byte [esp + 0x1c], 1
je 0x40ba09
and dword [esp + 0x1c], 0xfffffffe
push ebx
push edi
lea ecx, [esp + 0x40]
call fcn.004017a5
lea eax, [esp + 0x2a0]
lea ecx, [esp + 0x38]
push eax
call fcn.004016c5
cmp byte [esp + 0xf], bl
je 0x40bac7
push ebx
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x88]
mov byte [esp + 0x4b0], 3
call fcn.00426250
pop ecx
mov byte [esp + 0x4ac], 4
cmp dword [eax + 0x18], 0x10
jb 0x40ba51
mov eax, dword [eax + 4]
jmp 0x40ba54
add eax, 4
push eax
push 0x459068
push 8
push dword [0x468678]
call fcn.00429300
add esp, 0x10
push ebx
push edi
lea ecx, [esp + 0x8c]
call fcn.004017a5
push ebx
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x4b4], 1
call fcn.004018a6
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040162e
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x64]
mov byte [esp + 0x4b0], 5
call fcn.0040c632
push ebx
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x4b4], 1
call fcn.004017a5
jmp 0x40bb43
push ebx
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x88]
mov byte [esp + 0x4b0], 6
call fcn.00426250
pop ecx
mov byte [esp + 0x4ac], 7
cmp dword [eax + 0x18], 0x10
jb 0x40baf4
mov eax, dword [eax + 4]
jmp 0x40baf7
add eax, 4
push eax
lea eax, [esp + 0xa4]
push eax
push 0x45907c
push 8
push dword [0x468678]
call fcn.00429300
add esp, 0x14
push ebx
push edi
lea ecx, [esp + 0x8c]
call fcn.004017a5
push ebx
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x4b4], 1
call fcn.004018a6
jmp 0x40bb43
lea eax, [esp + 0x54]
push eax
call fcn.0040db6b
pop ecx
inc dword [esp + 0x30]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xb4]
push eax
push dword [esp + 0x48]
push dword [esp + 0x34]
mov esi, 0xff
mov dword [esp + 0x4c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40b868
mov esi, dword [esp + 0x6c]
cmp esi, dword [esp + 0x70]
jbe 0x40bb86
call fcn.0043b0d6
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x70]
cmp dword [esp + 0x6c], esi
jbe 0x40bba1
call fcn.0043b0d6
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40bbaf
cmp eax, dword [esp + 0x60]
je 0x40bbb4
call fcn.0043b0d6
cmp dword [esp + 0x28], esi
je 0x40bc1b
lea esi, [esp + 0x24]
call fcn.004142d8
cmp dword [eax + 0x18], 0x10
jb 0x40bbce
mov eax, dword [eax + 4]
jmp 0x40bbd1
add eax, 4
push eax
push 0x45908c
push 8
push dword [0x468678]
call fcn.00429300
add esp, 0x10
lea esi, [esp + 0x24]
call fcn.004142d8
cmp dword [eax + 0x18], 0x10
jb 0x40bbfb
mov eax, dword [eax + 4]
jmp 0x40bbfe
add eax, 4
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea edi, [esp + 0x30]
lea esi, [esp + 0x24]
call fcn.0040c699
jmp 0x40bb92
lea esi, [esp + 0x60]
call fcn.00404393
lea eax, [esp + 0x78]
push eax
call fcn.0040db6b
pop ecx
mov ecx, dword [esp + 0x4a4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret