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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42ae60
push 0x40fd00
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x42d00c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40425b
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x42d00c
call fcn.00410480
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x404234
push dword [ebp - 0x1c]
call fcn.00414f3b
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
call fcn.00414f3b
mov ebx, eax
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x1c]
call fcn.00414f3b
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40455f
test ebx, ebx
je 0x40455f
test edi, edi
je 0x40455f
push dword [ebp - 0x1c]
push 0
push eax
call fcn.0040f860
push dword [ebp - 0x1c]
push 0
push ebx
call fcn.0040f860
push dword [ebp - 0x1c]
push 0
push edi
call fcn.0040f860
add esp, 0x24
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push 0
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x2c]
call esi
test eax, eax
je 0x404301
push dword [ebp - 0x20]
jmp 0x404560
push dword [ebp - 0x1c]
call fcn.00414f3b
add esp, 4
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x4042f9
push dword [ebp - 0x1c]
push 0
push esi
call fcn.0040f860
add esp, 0xc
mov edi, dword [ebp - 0x20]
mov eax, esi
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x34], eax
xor ecx, ecx
cmp cx, word [edi]
je 0x40450d
cmp eax, dword [ebp - 0x1c]
jae 0x40450d
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x404350
sub esi, ecx
sar esi, 1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404364
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push ebx
call fcn.00421560
add esp, 0xc
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404390
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4043b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx + eax*2]
add ecx, 4
mov dword [ebp - 0x34], ecx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4043d3
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
mov esi, dword [ebp - 0x24]
push esi
call fcn.00421560
push dword [ebp - 0x40]
mov edx, esi
mov ecx, ebx
call fcn.00403ea0
add esp, 0x10
test eax, eax
je 0x4044e5
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404410
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
mov esi, dword [ebp - 0x30]
push esi
call fcn.00421560
add esp, 0xc
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404440
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404460
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 0x24]
push esi
call fcn.00421560
add esp, 0xc
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404490
sub ecx, edx
sar ecx, 1
inc ecx
lea eax, [esi + ecx*2]
mov dword [ebp - 0x30], eax
mov edx, ebx
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4044b0
sub edx, ecx
sar edx, 1
mov ecx, dword [ebp - 0x24]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4044c5
sub ecx, esi
sar ecx, 1
lea eax, [ecx + edx]
mov ecx, dword [ebp - 0x38]
add ecx, 2
add ecx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x44], ecx
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4044f0
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
mov eax, dword [ebp - 0x34]
jmp 0x404330
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov word [eax], cx
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x44], eax
add eax, eax
push eax
mov esi, dword [ebp - 0x3c]
push esi
push 7
push ecx
push str.PendingFileRenameOperations
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x404234
mov dword [ebp - 4], 0xfffffffe
call fcn.004045b3
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.00410941
mov dword [ebp - 0x20], 0
push ebx
call fcn.00410941
mov dword [ebp - 0x28], 0
push edi
call fcn.00410941
mov dword [ebp - 0x24], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x42d00c
call fcn.00410480
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret