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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44a0e0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45f684]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x78], ebx
push ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.0042f5aa
add esp, 4
mov edi, eax
lea eax, [esp + 0x24]
push eax
push 0x2001f
push ebx
push str.Softwarewyx
push SysReAllocStringLen
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40b0cb
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], esi
call fcn.004115c0
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b1b2
push 0x80004005
call fcn.00401080
lea esi, [esp + 0x18]
call fcn.004074c0
cmp eax, ebx
jne 0x40b18a
mov ebp, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea ecx, [esp + 0x34]
push ecx
push 4
push ebx
push str.nUpdate
push ebp
mov dword [esp + 0x48], ebx
call esi
mov eax, dword [esp + 0x44]
add edi, 0x15180
lea edx, [esp + 0x38]
adc eax, ebx
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], eax
call fcn.0040d550
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp eax, ebx
setne cl
mov edi, eax
cmp ecx, ebx
jne 0x40b13e
push 0x80004005
call fcn.00401080
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
add eax, eax
push eax
push edi
push 1
push ebx
push str.Date
push ebp
call esi
cmp ebp, ebx
je 0x40b166
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x78], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b18a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40b199
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push ebx
mov byte [esp + 0x88], 2
push str.nUpdate
mov edi, 4
push esi
mov dword [esp + 0x44], 0x100
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x28], edi
jne 0x40b209
cmp eax, ebx
je 0x40b221
push edi
lea ecx, [esp + 0x38]
push ecx
push edi
push ebx
push str.nUpdate
push esi
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [esp + 0x20], 2
jne 0x40b269
lea eax, [ebp - 0x10]
mov byte [esp + 0x78], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b248
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x40b253
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov edx, dword [esp + 0x2c]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, edx
or eax, ecx
jge 0x40b28c
push edx
lea ecx, [esp + 0x20]
call fcn.00401100
mov ebp, dword [esp + 0x1c]
push str.Date
lea ecx, [esp + 0x1c]
push ecx
lea edi, [esp + 0x34]
mov esi, ebp
call fcn.00407520
cmp ebp, ebx
jne 0x40b2a9
xor ecx, ecx
jmp 0x40b2c5
mov ecx, ebp
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40b2b0
sub ecx, esi
sar ecx, 1
js 0x40b416
cmp ecx, dword [ebp - 8]
jg 0x40b416
cmp eax, ebx
mov dword [ebp - 0xc], ecx
mov word [ebp + ecx*2], bx
jne 0x40b45a
push 4
push ebx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x28]
call fcn.00406270
mov eax, dword [eax]
push eax
call fcn.0042f0f4
mov ebp, eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b31c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 7
push 5
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00406270
mov eax, dword [eax]
push eax
call fcn.0042f0f4
mov edi, eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b35b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xa
push 8
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00406270
mov eax, dword [eax]
push eax
call fcn.0042f0f4
mov esi, eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b39a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
cmp ebp, 0x76c
setge al
cmp eax, ebx
jne 0x40b3b3
push 0x80004005
call fcn.00401080
lea ecx, [edi - 1]
cmp ecx, 0xb
jbe 0x40b3c5
push 0x80004005
call fcn.00401080
lea edx, [esi - 1]
cmp edx, 0x1e
jbe 0x40b3d7
push 0x80004005
call fcn.00401080
lea eax, [esp + 0x48]
add edi, 0xffffffff
add ebp, 0xfffff894
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x6c], 0xffffffff
call fcn.0042ffad
mov ecx, eax
and ecx, edx
add esp, 4
cmp ecx, 0xffffffff
jne 0x40b420
push 0x80070057
call fcn.00401080
cmp dword [esp + 0x44], edx
jg 0x40b456
jl 0x40b42e
cmp dword [esp + 0x40], eax
jae 0x40b456
lea ecx, [esp + 0x1c]
call fcn.004012f0
lea ecx, [esp + 0x18]
call fcn.00403a00
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub ecx, ebx
mov eax, 1
je 0x40b470
sub ecx, eax
jne 0x40b470
mov eax, 7
push ebx
cdq
push 0x15180
push edx
push eax
call fcn.004345a0
add eax, dword [esp + 0x40]
lea ecx, [esp + 0x30]
adc edx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x38]
push edx
call fcn.0040d550
push str.Date
lea eax, [esp + 0x1c]
mov byte [esp + 0x7c], 3
mov esi, dword [esp + 0x34]
push eax
call fcn.004075b0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40b4c7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x78], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b4ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x78], bl
lea eax, [ebp - 0x10]
jmp 0x40b171