Function at 0x406d50
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x94
push 0xffffffffffffffff
push 0x4c82bd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4e7744]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0x20
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004aa4a8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
call fcn.00404230
add esp, 8
push 0x38
xor eax, eax
mov dword [ebp + 0x60], ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
lea ecx, [ebp + 0x60]
mov byte [ebp - 4], 1
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x74], 7
mov word [ebp + 0x60], ax
call fcn.00409f70
xor eax, eax
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 3
push eax
push 7
push 0x28
call fcn.00403f90
add esp, 0xc
test al, al
je 0x407227
cmp dword [ebp + 0x74], 8
lea ecx, [ebp - 0x10]
push ecx
push 0x20119
lea eax, [ebp + 0x60]
cmovae eax, dword [ebp + 0x60]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407227
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
call fcn.00404eb0
add esp, 8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
cmp edi, eax
je 0x407227
jmp 0x406e60
xor eax, eax
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
mov ecx, dword [ebp + 0x70]
mov eax, 0x7ffffffe
sub eax, ecx
mov byte [ebp - 4], 4
cmp eax, 1
jb 0x407325
cmp dword [ebp + 0x74], 8
lea eax, [ebp + 0x60]
push 1
cmovae eax, dword [ebp + 0x60]
push 0x4c996c
push ecx
push eax
lea eax, [ebp + 0x60]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.00401b00
or ebx, 1
cmp dword [edi + 0x1c], 8
lea edx, [edi + 8]
mov byte [ebp - 4], 5
jb 0x406ec7
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406ed0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp]
call fcn.00409d10
mov edx, eax
mov dword [ebp + 0x78], 0
mov dword [ebp + 0x88], 0
mov dword [ebp + 0x8c], 0
mov ecx, dword [edx]
mov dword [ebp + 0x78], ecx
mov ecx, dword [edx + 4]
mov dword [ebp + 0x7c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp + 0x80], ecx
mov eax, dword [edx + 0xc]
mov dword [ebp + 0x84], eax
mov eax, dword [edx + 0x10]
mov dword [ebp + 0x88], eax
mov eax, dword [edx + 0x14]
mov dword [ebp + 0x8c], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.00404320
mov edx, dword [ebp + 0x8c]
add esp, 8
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x406f9d
mov ecx, dword [ebp + 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406f93
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407320
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov edx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp + 0x88], 0
mov dword [ebp + 0x8c], 7
mov word [ebp + 0x78], ax
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x406ff5
mov ecx, dword [ebp]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406feb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407320
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov edx, dword [ebp + 0x58]
mov eax, 0x7ffffffe
mov esi, dword [ebp + 0x40]
sub eax, edx
cmp eax, esi
jb 0x407325
cmp dword [ebp + 0x5c], 8
lea ecx, [ebp + 0x48]
push esi
cmovae ecx, dword [ebp + 0x48]
lea eax, [ebp + 0x30]
cmp dword [ebp + 0x44], 8
cmovae eax, dword [ebp + 0x30]
push eax
push edx
push ecx
lea eax, [ebp + 0x48]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp + 0x18]
call fcn.00401b00
or ebx, 6
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 7
mov esi, dword [eax]
cmp esi, eax
je 0x4071a0
jmp 0x407050
mov ecx, dword [ebp + 0x28]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x407325
cmp dword [ebp + 0x2c], 8
lea eax, [ebp + 0x18]
push 1
cmovae eax, dword [ebp + 0x18]
push 0x4c996c
push ecx
push eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.00401b00
cmp dword [esi + 0x1c], 8
lea ecx, [esi + 8]
mov byte [ebp - 4], 8
jb 0x407096
mov ecx, dword [esi + 8]
push dword [esi + 0x18]
push ecx
lea ecx, [ebp]
call fcn.00409d10
mov edx, eax
or ebx, 0x18
mov ecx, dword [edx]
mov dword [ebp + 0x78], ecx
mov ecx, dword [edx + 4]
mov dword [ebp + 0x7c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp + 0x80], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp + 0x84], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp + 0x88], ecx
mov eax, dword [edx + 0x14]
mov dword [ebp + 0x8c], eax
xor eax, eax
mov word [edx], ax
lea eax, [ebp + 0x78]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
cmp dword [ebp + 0x8c], 8
cmovae eax, dword [ebp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 0x8c]
cmp edx, 8
jb 0x40713b
mov ecx, dword [ebp + 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407131
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407320
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov edx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp + 0x88], 0
mov dword [ebp + 0x8c], 7
mov word [ebp + 0x78], ax
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x407193
mov eax, dword [ebp]
lea edx, [edx*2 + 2]
mov ecx, eax
cmp edx, 0x1000
jb 0x407189
mov eax, dword [eax - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x407320
push edx
push eax
call fcn.004aa4d8
add esp, 8
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ebp - 0x20]
jne 0x407050
mov edx, dword [ebp + 0x2c]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x4071de
mov ecx, dword [ebp + 0x18]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4071d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407320
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov edx, dword [ebp + 0x5c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40721c
mov ecx, dword [ebp + 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407212
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407320
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov edi, dword [edi]
cmp edi, dword [ebp - 0x18]
jne 0x406e60
mov edx, dword [ebp + 0x44]
cmp edx, 8
jb 0x407261
mov ecx, dword [ebp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407257
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407320
push edx
push ecx
call fcn.004aa4d8
add esp, 8
mov edx, dword [ebp + 0x74]
cmp edx, 8
jb 0x40729b
mov ecx, dword [ebp + 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407291
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407320
push edx
push ecx
call fcn.004aa4d8
add esp, 8
xor eax, eax
mov dword [ebp + 0x70], 0
lea ecx, [ebp - 0x20]
mov dword [ebp + 0x74], 7
mov word [ebp + 0x60], ax
call fcn.004023c0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov edi, dword [ecx]
test edi, edi
je 0x4072f0
lea esp, [esp]
mov esi, dword [edi]
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004018c0
push 0x20
push edi
call fcn.004aa4d8
add esp, 0x10
mov edi, esi
test esi, esi
jne 0x4072d0
push 0x20
push dword [ebp - 0x18]
call fcn.004aa4d8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x90]
xor ecx, ebp
call fcn.004aa4f4
lea esp, [ebp + 0x94]
pop ebp
ret
call fcn.004aeecf
call fcn.00409af0
int3