Function at 0x402320
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0xffffffffffffffff
push 0x440863
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4545f0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4545f0]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
xor esi, esi
push 0xff
lea eax, [esp + 0x169]
push esi
mov dword [esp + 0x278], esi
push eax
mov byte [esp + 0x170], 0
call fcn.0042c680
add esp, 0xc
push 0x13c
lea ecx, [esp + 0x2c]
push esi
push ecx
mov dword [esp + 0x30], esi
call fcn.0042c680
mov ebx, dword [esp + 0x284]
add esp, 0xc
push ebx
lea edx, [esp + 0x168]
push str._s.
push edx
call fcn.00429f8b
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x168]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4023f2
mov dword [esp + 0x270], eax
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x402577
mov ebp, dword [esp + 0x27c]
lea ecx, [esp + 0x50]
push 0x4478b0
push ecx
call fcn.0042a15d
add esp, 8
test eax, eax
je 0x402523
lea edx, [esp + 0x50]
push 0x4478b4
push edx
call fcn.0042a15d
add esp, 8
test eax, eax
je 0x402523
test byte [esp + 0x24], 0x10
je 0x4024d3
lea eax, [ebx - 0x10]
push eax
call fcn.00401840
add eax, 0x10
add esp, 4
mov dword [esp + 0x14], eax
push 1
push 0x4478b8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x278], 1
call fcn.00403310
lea eax, [esp + 0x50]
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x402470
sub eax, ecx
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403310
mov esi, dword [esp + 0x14]
push ebp
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
push esi
call fcn.00401840
mov ecx, dword [esp + 0x28]
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00402320
mov byte [esp + 0x270], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402523
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x402523
lea eax, [esp + 0x50]
push eax
push ebx
lea ecx, [esp + 0x16c]
push 0x4478bc
push ecx
call fcn.00429f8b
add esp, 0x10
test ebp, ebp
je 0x402500
push 4
push 0
lea edx, [esp + 0x16c]
push edx
jmp 0x40251d
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402523
push 4
push eax
lea ecx, [esp + 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4023f9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebp, ebp
jne 0x402551
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40255c
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebx - 0x10]
mov dword [esp + 0x270], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402583
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0042963c
add esp, 0x260
ret 8