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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478732
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6b8
mov eax, dword [0x4994a0]
xor eax, dword [ebp + 4]
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebx + 0x84]
mov dword [esp + 0x6bc], eax
call fcn.0040b260
mov eax, dword [ebx + 0x10c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x14b
push eax
call esi
mov ecx, dword [ebx + 0x10c]
push str.__Select_the_date__
push 0
push 0x143
push ecx
call esi
mov edx, dword [ebx + 0x10c]
push 0
push 0
push 0x14e
push edx
call esi
mov eax, dword [ebx + 0x10c]
push 0xffffffffffffffff
push 0
push 0x151
push eax
call esi
xor eax, eax
mov ecx, 0x104
lea edi, [esp + 0x2a0]
rep stosd dword es:[edi], eax
push 0x410
lea ecx, [esp + 0x2a4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x2a0]
push edx
lea ecx, [esp + 0x18]
call fcn.00405920
mov eax, dword [esp + 0x14]
push 0x5c
push eax
mov dword [esp + 0x6d4], 0
call fcn.004577cd
add esp, 8
test eax, eax
jne 0x422770
or eax, 0xffffffff
jmp 0x422774
sub eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00408600
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6d0], 1
call fcn.00402990
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x6cc], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4227bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x14]
lea ecx, [ebx + 0x7c]
push eax
call fcn.00402990
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2a0]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4227d5
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.Registry_Backups
lea ecx, [esp + 0x2a4]
push ecx
call edi
lea edx, [esp + 0x2a0]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0x2a0]
push eax
lea ecx, [esp + 0x34]
call fcn.00405920
push str..reg
lea ecx, [esp + 0x2a4]
push ecx
mov byte [esp + 0x6d4], 2
call edi
lea eax, [esp + 0x2a0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422834
sub eax, edx
push eax
lea edx, [esp + 0x2a4]
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 + 0x18], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x160]
push eax
xor edi, edi
push ecx
mov byte [esp + 0x6d4], 3
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x422ab2
lea esp, [esp]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x190]
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call fcn.0046d2f5
test eax, eax
je 0x422b7f
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4228f0
sub eax, edx
push eax
lea eax, [esp + 0x190]
push eax
lea ecx, [esp + 0x20]
call fcn.00402770
push 4
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
call fcn.00408600
mov eax, dword [eax]
push str.FULL
push eax
mov byte [esp + 0x6d4], 4
call fcn.004578d3
add esp, 8
test eax, eax
jne 0x42293e
mov al, byte [ebp + 8]
test al, al
jne 0x4229a3
push 4
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
call fcn.00408600
mov eax, dword [eax]
push str.FULL
push eax
call fcn.004578d3
add esp, 8
test eax, eax
je 0x422973
mov dl, byte [ebp + 8]
test dl, dl
sete al
test al, al
mov byte [esp + 0x12], 1
jne 0x422978
mov byte [esp + 0x12], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422996
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x12]
test al, al
mov byte [esp + 0x12], 0
je 0x4229a8
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x6cc], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4229ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x12]
test al, al
je 0x422a8b
push str._A___B__d___Y___H:_M:_S
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
call fcn.004157b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x10c]
push ecx
push edi
push 0x143
push edx
mov byte [esp + 0x6dc], 5
call esi
lea eax, [esp + 0x18]
lea esi, [ebx + 0x84]
push eax
mov ecx, esi
call fcn.0040b5f0
mov eax, dword [esi + 4]
test eax, eax
jne 0x422a26
xor esi, esi
jmp 0x422a2e
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 2
mov ecx, dword [ebx + 0x10c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x146
push ecx
call edi
mov edx, dword [ebx + 0x10c]
dec eax
dec esi
push esi
push eax
push 0x151
push edx
call edi
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x13], 1
mov byte [esp + 0x6cc], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422a83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x160]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4228a0
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0x13]
test al, al
jne 0x422ae4
push 0x40
push str.RegSweep
push str.No_backups_present_for_restore.
mov ecx, ebx
call fcn.004680b6
push 2
mov ecx, ebx
mov byte [ebx + 0x98], 1
call fcn.00466957
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x6cc], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422b0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x6cc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422b30
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 + 0x6cc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422b59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x6c4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6bc]
xor ecx, dword [ebp + 4]
call fcn.00456aa7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x422a8b