Function at 0x40e4e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x443d61
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4564c4]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4564c4]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x148], ebx
call fcn.00413328
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40e544
push 0x80004005
call fcn.00401520
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x148], 1
call fcn.00413328
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40e576
push 0x80004005
call fcn.00401520
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
push 0x103
lea ecx, [esp + 0x3d]
push ebx
mov byte [esp + 0x150], 2
push ecx
mov byte [esp + 0x44], bl
call fcn.00431520
add esp, 0xc
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x2e]
movzx ecx, word [esp + 0x2a]
movzx edx, word [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push str._d_02d_02d
push eax
call fcn.004033f0
mov eax, dword [0x45a554]
add esp, 0x14
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [0x457a90]
lea edx, [esp + 0x18]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push ecx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40e60a
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.srankudt
push ebp
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40e64e
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x40e640
cmp eax, 2
jne 0x40e64e
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40e667
cmp byte [esp + eax + 0x37], bl
je 0x40e66b
mov esi, dword [esp + 0x18]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
jne 0x40e6a9
push 0x80004005
call fcn.00401520
mov byte [esp + 0x38], bl
lea eax, [esp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40e672
sub eax, edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00401760
mov edi, dword [esp + 0x24]
xor eax, eax
cmp edi, ebx
setne al
cmp eax, ebx
jne 0x40e720
push 0x80004005
call fcn.00401520
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push esi
push 1
push ebx
push str.srankudt
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [edi - 0x10]
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0x148], 1
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e6e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x148], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e70b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, ebx
je 0x40e716
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x40e7a0
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.0042f58c
add esp, 8
cmp eax, ebx
setne al
cmp al, bl
jne 0x40e652
cmp ebp, ebx
je 0x40e74c
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
lea eax, [edi - 0x10]
mov byte [esp + 0x148], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e770
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x148], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e793
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, ebx
je 0x40e79e
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0042dbc0
add esp, 0x138
ret