Function at 0x420620
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47850d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c0
mov eax, dword [0x4994a0]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x9c]
mov dword [esp + 0x6c4], eax
call fcn.0040b260
mov eax, dword [esi + 0x1350]
mov eax, dword [eax + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1009
push eax
call ebx
mov ecx, dword [esi + 0x91c]
push 0
push 0
push 0x14b
push ecx
call ebx
mov edx, dword [esi + 0x91c]
push str.__Select_the_date__
push 0
push 0x143
push edx
call ebx
mov eax, dword [esi + 0x91c]
push 0
push 0
push 0x14e
push eax
call ebx
mov ecx, dword [esi + 0x91c]
push 0xffffffffffffffff
push 0
push 0x151
push ecx
call ebx
push 0x410
lea edx, [esp + 0x2ac]
xor eax, eax
push edx
mov ecx, 0x104
lea edi, [esp + 0x2b0]
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x2a8]
push eax
lea ecx, [esp + 0x18]
call fcn.00405920
mov ecx, dword [esp + 0x14]
push 0x5c
push ecx
mov dword [esp + 0x6dc], 0
call fcn.004577cd
add esp, 8
test eax, eax
jne 0x420725
or eax, 0xffffffff
jmp 0x420729
sub eax, dword [esp + 0x14]
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
call fcn.00408600
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6d8], 1
call fcn.00402990
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x6d4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420770
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
lea ecx, [esi + 0x23c]
push eax
call fcn.00402990
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2a8]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x420790
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.Registry_Backups
lea ecx, [esp + 0x2ac]
push ecx
call edi
lea edx, [esp + 0x2a8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0x2a8]
push eax
lea ecx, [esp + 0x2c]
call fcn.00405920
push str..reg
lea ecx, [esp + 0x2ac]
push ecx
mov byte [esp + 0x6dc], 2
call edi
lea eax, [esp + 0x2a8]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4207f0
sub eax, edx
push eax
lea edx, [esp + 0x2ac]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402770
call fcn.0046b487
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x168]
push eax
xor edi, edi
push ecx
mov byte [esp + 0x6dc], 3
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x420a67
jmp 0x420860
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x198]
push eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call fcn.0046d2f5
test eax, eax
je 0x420b22
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x194]
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4208b0
sub eax, edx
push eax
lea eax, [esp + 0x198]
push eax
lea ecx, [esp + 0x24]
call fcn.00402770
push 4
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
call fcn.00408600
mov eax, dword [eax]
push str.FULL
push eax
call fcn.004578d3
add esp, 8
test eax, eax
mov eax, dword [esp + 0x34]
setne byte [esp + 0x1b]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x1b]
test al, al
je 0x420a40
push str._A___B__d___Y___H:_M:_S
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
call fcn.004157b0
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x91c]
push ecx
push edi
push 0x143
push edx
mov byte [esp + 0x6e4], 4
call ebx
push 0x482af8
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00405860
lea edx, [esp + 0x28]
push edx
push eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x6ec], 5
call fcn.00408720
add esp, 0x18
lea edi, [esi + 0x9c]
push eax
mov ecx, edi
mov byte [esp + 0x6d8], 6
call fcn.0040b5f0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x6d4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4209b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x6d4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4209dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi + 4]
test eax, eax
jne 0x4209e7
xor edi, edi
jmp 0x4209ef
mov edi, dword [edi + 8]
sub edi, eax
sar edi, 2
mov eax, dword [esi + 0x91c]
push 0
push 0
push 0x146
push eax
call ebx
mov ecx, dword [esi + 0x91c]
dec eax
dec edi
push edi
push eax
push 0x151
push ecx
call ebx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x13], 1
mov byte [esp + 0x6d4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420a3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor edi, edi
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x168]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x420860
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0x13]
test al, al
jne 0x420a89
push 0x40
push str.RegSweep
push str.No_backups_present_for_restore.
mov ecx, esi
call fcn.004680b6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x6d4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420aaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x6d4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420ad5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x6d4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420afe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x6cc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6c4]
xor ecx, dword [ebp + 4]
call fcn.00456aa7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x420a40