Function at 0x40a680
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
sub esp, 0xf64
mov eax, dword [0x468004]
xor eax, esp
mov dword [esp + 0xf60], eax
mov eax, dword [esp + 0xf70]
push ebx
mov ebx, dword [esp + 0xf6c]
push esi
push edi
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [esp + 0x376]
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x378], cx
call fcn.0042eb30
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x782]
push ecx
mov word [esp + 0x784], ax
call fcn.0042eb30
xor edx, edx
push 0x3fe
push edx
lea eax, [esp + 0xb8e]
push eax
mov word [esp + 0xb90], dx
call fcn.0042eb30
push 0x103
lea ecx, [esp + 0x291]
push 0
push ecx
mov byte [esp + 0x298], 0
call fcn.0042eb30
push ebx
lea edx, [esp + 0x29c]
push str._s.
xor edi, edi
push edx
mov dword [esp + 0x48], edi
call fcn.0042ecc6
add esp, 0x3c
push 0x200
lea eax, [esp + 0x370]
push eax
push 0x104
lea ecx, [esp + 0x274]
push ecx
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
je 0x40a97b
push ebp
mov ebp, dword [esp + 0xf7c]
test byte [esp + 0x1c], 0x10
je 0x40a7c0
lea ecx, [esp + 0x48]
push 0x45c214
push ecx
call fcn.0042fbc1
add esp, 8
test eax, eax
je 0x40a861
lea edx, [esp + 0x48]
push 0x45c20c
push edx
call fcn.0042fbc1
add esp, 8
jmp 0x40a861
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x774]
push 0x45c204
push ecx
call fcn.00406ed0
lea edx, [esp + 0x77c]
push edx
call fcn.00459686
lea eax, [esp + 0x58]
add esp, 0x10
xor edi, edi
xor edx, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a7f2
sub eax, esi
sar eax, 1
test eax, eax
jle 0x40a849
jmp 0x40a810
movzx eax, word [esp + edx*2 + 0x770]
movsx ecx, byte [edx + ebp]
movzx esi, ax
cmp esi, ecx
je 0x40a82d
mov ecx, 0x80
cmp ax, cx
jb 0x40a849
lea eax, [esp + 0x48]
inc edi
inc edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a836
sub eax, esi
sar eax, 1
cmp edx, eax
jl 0x40a810
mov eax, ebp
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a850
sub eax, edx
cmp edi, eax
je 0x40a899
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a788
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf60]
xor ecx, esp
call fcn.0042eb15
add esp, 0xf64
ret
push ebx
lea eax, [esp + 0x270]
push 0x45bf48
push eax
call fcn.0042ecc6
add esp, 0xc
push 0x200
lea ecx, [esp + 0x374]
push ecx
push 0x104
lea edx, [esp + 0x278]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x374]
push ecx
mov edx, ecx
push 0x45c1f8
push edx
call fcn.00406ed0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x58]
push eax
push 0x45c204
push ecx
call fcn.00406ed0
lea edx, [esp + 0x38c]
push edx
lea eax, [esp + 0xb90]
push 0x45c1e8
push eax
call fcn.00406ed0
add esp, 0x28
push 1
lea ecx, [esp + 0xb74]
push ecx
lea edx, [esp + 0x378]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40a94b
lea eax, [esp + 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x14]
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf60]
xor ecx, esp
call fcn.0042eb15
add esp, 0xf64
ret
mov ecx, dword [esp + 0xf6c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042eb15
add esp, 0xf64
ret