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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4688d8
push 0x42e4e0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x46c018]
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 0x40d63b
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x46c018
call fcn.004310a0
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 0x40d614
push dword [ebp - 0x1c]
call fcn.00439b85
mov dword [ebp - 0x20], eax
push dword [ebp - 0x1c]
call fcn.00439b85
mov ebx, eax
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x1c]
call fcn.00439b85
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40d93f
test ebx, ebx
je 0x40d93f
test edi, edi
je 0x40d93f
push dword [ebp - 0x1c]
push 0
push eax
call fcn.0042f000
push dword [ebp - 0x1c]
push 0
push ebx
call fcn.0042f000
push dword [ebp - 0x1c]
push 0
push edi
call fcn.0042f000
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 0x40d6e1
push dword [ebp - 0x20]
jmp 0x40d940
push dword [ebp - 0x1c]
call fcn.00439b85
add esp, 4
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x40d6d9
push dword [ebp - 0x1c]
push 0
push esi
call fcn.0042f000
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 0x40d8ed
cmp eax, dword [ebp - 0x1c]
jae 0x40d8ed
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40d730
sub esi, ecx
sar esi, 1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d744
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push ebx
call fcn.0042ea80
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 0x40d770
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 0x40d790
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 0x40d7b3
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
mov esi, dword [ebp - 0x24]
push esi
call fcn.0042ea80
push dword [ebp - 0x40]
mov edx, esi
mov ecx, ebx
call fcn.0040d150
add esp, 0x10
test eax, eax
je 0x40d8c5
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d7f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
mov esi, dword [ebp - 0x30]
push esi
call fcn.0042ea80
add esp, 0xc
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d820
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 0x40d840
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 0x24]
push esi
call fcn.0042ea80
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 0x40d870
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 0x40d890
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 0x40d8a5
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 0x40d8d0
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
mov eax, dword [ebp - 0x34]
jmp 0x40d710
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 0x40d614
mov dword [ebp - 4], 0xfffffffe
call fcn.0040d993
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.00431880
mov dword [ebp - 0x20], 0
push ebx
call fcn.00431880
mov dword [ebp - 0x28], 0
push edi
call fcn.00431880
mov dword [ebp - 0x24], 0
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x46c018
call fcn.004310a0
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