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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48d558
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x4b5930]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push esi
push edi
mov eax, dword [0x4b5930]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebx + 0x728]
cmp dword [ebx + 0x724], edi
lea esi, [ebx + 0x720]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], esi
jbe 0x40c363
call fcn.0046ecbd
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0x18], eax
jbe 0x40c378
call fcn.0046ecbd
mov eax, dword [esp + 0x18]
push edi
push esi
push eax
push esi
lea eax, [esp + 0x54]
push eax
push esi
call fcn.0040e450
mov eax, dword [ebx + 0x71c]
mov ecx, dword [eax + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
push edi
push edi
push 0x1009
push ecx
call esi
mov edx, dword [ebx + 0x6e8]
push edi
push edi
push 0x14b
push edx
call esi
mov eax, dword [ebx + 0x6e8]
push str.__Select_the_date__
push edi
push 0x143
push eax
call esi
mov ecx, dword [ebx + 0x6e8]
push edi
push edi
push 0x14e
push ecx
call esi
mov edx, dword [ebx + 0x6e8]
push 0xffffffffffffffff
push edi
push 0x151
push edx
call esi
mov eax, dword [0x4bb3b0]
add eax, 0xfffffff0
push eax
call fcn.0040ae10
add eax, 0x10
mov dword [esp + 0x20], eax
push str.Registry_Backups
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x2d8], edi
call fcn.00408f40
add esp, 0x10
mov byte [esp + 0x2c8], 1
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x49b45c
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00408f40
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2cc], 2
call fcn.0040b2c0
mov byte [esp + 0x2c8], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c47e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00457afe
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40c498
push 0x80004005
call fcn.00405140
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x2c8], 3
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x174]
push ecx
push edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x1e], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x28], eax
je 0x40c6fc
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1a4]
push ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
call fcn.004590fe
test eax, eax
je 0x40c806
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1a0]
mov dword [esp + 0x34], edx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c530
sub eax, edx
push eax
lea ecx, [esp + 0x1a4]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040b1d0
push 4
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x2c]
call fcn.0040e150
mov eax, dword [eax]
push str.FULL
push eax
call fcn.0046ee13
add esp, 8
cmp eax, edi
mov eax, dword [esp + 0x3c]
setne byte [esp + 0x17]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c594
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x17], 0
je 0x40c6d9
lea ecx, [esp + 0x34]
push ecx
mov esi, str._A___B__d___Y___H:_M:_S
lea edi, [esp + 0x1c]
call fcn.0040f680
mov byte [esp + 0x2c8], 4
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x6e8]
push edx
push 0
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x49aa08
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00408f40
lea ecx, [esp + 0x30]
push ecx
push eax
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x2e0], 5
call fcn.00408e80
add esp, 0x18
mov esi, dword [esp + 0x40]
mov ebx, eax
mov byte [esp + 0x2c8], 6
call fcn.0040e210
mov byte [esp + 0x2c8], 5
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c63d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c8], 4
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 0x40c665
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x40c670
xor esi, esi
jmp 0x40c678
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 2
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebx + 0x6e8]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x146
push ecx
call edi
mov edx, dword [ebx + 0x6e8]
add esi, 0xffffffff
push esi
sub eax, 1
push eax
push 0x151
push edx
call edi
mov byte [esp + 0x2c8], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x16], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c6d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x174]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c4dd
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x16], 0
jne 0x40c767
mov edx, dword [0x4bb2a0]
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.004365c0
push 0x40
mov byte [esp + 0x2cc], 7
mov eax, dword [eax]
push str.No_backups_present_for_restore.
push eax
mov eax, dword [ebx + 0x20]
push eax
xor ecx, ecx
call fcn.0042a5c0
mov byte [esp + 0x2d8], 3
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c767
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c8], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c78f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c8], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x2c8], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.0046da06
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40c6d9