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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x469ca0
push 0x42f420
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x46e018]
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 0x40d6eb
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x46e018
call fcn.00431fe0
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 0x40d6c4
push dword [ebp - 0x1c]
call fcn.0043aac2
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
call fcn.0043aac2
mov ebx, eax
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x1c]
call fcn.0043aac2
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40d9ef
test ebx, ebx
je 0x40d9ef
test edi, edi
je 0x40d9ef
push dword [ebp - 0x1c]
push 0
push eax
call fcn.0042ff40
push dword [ebp - 0x1c]
push 0
push ebx
call fcn.0042ff40
push dword [ebp - 0x1c]
push 0
push edi
call fcn.0042ff40
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 0x40d791
push dword [ebp - 0x20]
jmp 0x40d9f0
push dword [ebp - 0x1c]
call fcn.0043aac2
add esp, 4
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x40d789
push dword [ebp - 0x1c]
push 0
push esi
call fcn.0042ff40
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 0x40d99d
cmp eax, dword [ebp - 0x1c]
jae 0x40d99d
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40d7e0
sub esi, ecx
sar esi, 1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d7f4
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push ebx
call fcn.0042f9c0
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 0x40d820
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 0x40d840
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 0x40d863
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
mov esi, dword [ebp - 0x24]
push esi
call fcn.0042f9c0
push dword [ebp - 0x40]
mov edx, esi
mov ecx, ebx
call fcn.0040d200
add esp, 0x10
test eax, eax
je 0x40d975
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d8a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
mov esi, dword [ebp - 0x30]
push esi
call fcn.0042f9c0
add esp, 0xc
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d8d0
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 0x40d8f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 0x24]
push esi
call fcn.0042f9c0
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 0x40d920
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 0x40d940
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 0x40d955
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 0x40d980
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
mov eax, dword [ebp - 0x34]
jmp 0x40d7c0
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 0x40d6c4
mov dword [ebp - 4], 0xfffffffe
call fcn.0040da43
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.004327c0
mov dword [ebp - 0x20], 0
push ebx
call fcn.004327c0
mov dword [ebp - 0x28], 0
push edi
call fcn.004327c0
mov dword [ebp - 0x24], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x46e018
call fcn.00431fe0
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