Function at 0x40b439
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 0x452bfe
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 [0x4674fc], 8
mov eax, dword [0x4674e8]
push esi
push edi
jae 0x40b476
mov eax, 0x4674e8
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
push eax
push dword [0x467470]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b8a7
push dword [esp + 0x18]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x7c]
push eax
call fcn.00419fc8
pop ecx
pop ecx
lea eax, [esp + 0x60]
push eax
mov dword [esp + 0x4b0], ebx
call fcn.004140b0
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 0x40b7d4
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 0x40b523
lea eax, [esp + 0xa0]
push eax
push 0x45804c
push 8
push dword [0x467478]
call fcn.00429210
add esp, 0x10
jmp 0x40b7bb
push dword [esp + 0x20]
mov ecx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x58]
push eax
call fcn.00419fc8
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 0x40b7b0
xor edi, edi
inc edi
cmp dword [esp + 0x14], edi
jne 0x40b7b0
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 0x40b7b0
cmp dword [esp + 0x14], edi
jne 0x40b7b0
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 0x40b7b0
cmp dword [esp + 0x14], esi
jne 0x40b7b0
lea eax, [esp + 0x54]
push eax
call fcn.0040d7e8
pop ecx
lea eax, [esp + 0x2a0]
push eax
call fcn.00419589
pop ecx
test al, al
je 0x40b65e
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.004194eb
add esp, 0xc
test al, al
jne 0x40b65e
sub esp, 0x1c
lea eax, [esp + 0x1bc]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0040162e
call fcn.0040c1a5
mov byte [esp + 0xf], bl
cmp al, bl
je 0x40b663
mov byte [esp + 0xf], 1
mov dword [esp + 0x4ac], edi
test byte [esp + 0x1c], 1
je 0x40b681
and dword [esp + 0x1c], 0xfffffffe
push ebx
push edi
lea ecx, [esp + 0x40]
call fcn.004017a7
lea eax, [esp + 0x2a0]
lea ecx, [esp + 0x38]
push eax
call fcn.004016bb
cmp byte [esp + 0xf], bl
je 0x40b73f
push ebx
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x88]
mov byte [esp + 0x4b0], 3
call fcn.0042619d
pop ecx
mov byte [esp + 0x4ac], 4
cmp dword [eax + 0x18], 0x10
jb 0x40b6c9
mov eax, dword [eax + 4]
jmp 0x40b6cc
add eax, 4
push eax
push 0x458060
push 8
push dword [0x467478]
call fcn.00429210
add esp, 0x10
push ebx
push edi
lea ecx, [esp + 0x8c]
call fcn.004017a7
push ebx
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x4b4], 1
call fcn.004018a8
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.0040c2aa
push ebx
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x4b4], 1
call fcn.004017a7
jmp 0x40b7bb
push ebx
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x88]
mov byte [esp + 0x4b0], 6
call fcn.0042619d
pop ecx
mov byte [esp + 0x4ac], 7
cmp dword [eax + 0x18], 0x10
jb 0x40b76c
mov eax, dword [eax + 4]
jmp 0x40b76f
add eax, 4
push eax
lea eax, [esp + 0xa4]
push eax
push 0x458074
push 8
push dword [0x467478]
call fcn.00429210
add esp, 0x14
push ebx
push edi
lea ecx, [esp + 0x8c]
call fcn.004017a7
push ebx
push edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x4b4], 1
call fcn.004018a8
jmp 0x40b7bb
lea eax, [esp + 0x54]
push eax
call fcn.0040d7e8
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 0x40b4e0
mov esi, dword [esp + 0x6c]
cmp esi, dword [esp + 0x70]
jbe 0x40b7fe
call fcn.0043ae46
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 0x40b819
call fcn.0043ae46
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40b827
cmp eax, dword [esp + 0x60]
je 0x40b82c
call fcn.0043ae46
cmp dword [esp + 0x28], esi
je 0x40b893
lea esi, [esp + 0x24]
call fcn.0040a11d
cmp dword [eax + 0x18], 0x10
jb 0x40b846
mov eax, dword [eax + 4]
jmp 0x40b849
add eax, 4
push eax
push 0x458084
push 8
push dword [0x467478]
call fcn.00429210
add esp, 0x10
lea esi, [esp + 0x24]
call fcn.0040a11d
cmp dword [eax + 0x18], 0x10
jb 0x40b873
mov eax, dword [eax + 4]
jmp 0x40b876
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.004142d7
jmp 0x40b80a
lea esi, [esp + 0x60]
call fcn.0040436c
lea eax, [esp + 0x78]
push eax
call fcn.0040d7e8
pop ecx
mov ecx, dword [esp + 0x4a4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret