Function at 0x48ce50
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c96cf
mov eax, dword fs:[0]
push eax
sub esp, 0x504
mov eax, dword [0x4f3280]
xor eax, esp
mov dword [esp + 0x4fc], eax
push ebx
push esi
mov eax, dword [0x4f3280]
xor eax, esp
push eax
lea eax, [esp + 0x510]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x208
lea eax, [esp + 0x2fa]
push 0
push eax
mov word [esp + 0x300], 0
call fcn.004a1d00
mov eax, dword [0x4f8a0c]
mov ebx, 1
add eax, ebx
add esp, 0xc
cmp eax, 0xa
mov dword [0x4f8a0c], eax
ja 0x48d3bc
test esi, esi
je 0x48d3bc
push 0x104
lea ecx, [esp + 0x2f8]
push esi
push ecx
call fcn.004a4e04
add esp, 0xc
test eax, eax
je 0x48d3bc
lea edx, [esp + 0x2f4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d3bc
lea ecx, [esp + 0x2f4]
call fcn.0048e010
test al, al
je 0x48d3bc
add dword [0x4f887c], ebx
lea eax, [esp + 0x2f4]
push eax
lea ecx, [esp + 0x18]
call fcn.00402fc0
mov esi, eax
push str.Folder
lea ecx, [esp + 0x14]
mov dword [esp + 0x51c], 0
call fcn.00402fc0
mov byte [esp + 0x518], bl
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
push 0x4e2560
mov esi, 0x4f8948
call fcn.0048a930
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00403050
lea ecx, [esp + 0x14]
mov dword [esp + 0x518], 0xffffffff
call fcn.00403050
lea eax, [esp + 0x2f4]
push eax
lea ecx, [esp + 0x54]
call fcn.00408320
mov ebx, 2
lea ecx, [esp + 0x50]
mov dword [esp + 0x518], ebx
call fcn.00403400
push eax
push 0x4e1d00
lea ecx, [esp + 0x58]
call fcn.00478000
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.00403400
sub eax, 1
cmp esi, eax
je 0x48d00b
push 0x4e1d00
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0044c260
add esp, 0xc
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x51c], 3
call fcn.004034f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x518], bl
call fcn.004034c0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x8c]
call fcn.00403470
lea ecx, [esp + 0x6c]
call fcn.00403420
push 0x4e1f3c
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x524], 5
call fcn.0044c260
add esp, 0xc
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x51c], 6
call fcn.004034f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x518], 5
call fcn.004034c0
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x8c]
call fcn.004035c0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x48d368
test byte [esp + 0xa4], 0x10
je 0x48d188
mov ecx, 0x4e1f40
lea eax, [esp + 0xd0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48d0d7
test dx, dx
je 0x48d0d3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48d0d7
add eax, 4
add ecx, 4
test dx, dx
jne 0x48d0b1
xor eax, eax
jmp 0x48d0dc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48d1db
mov ecx, 0x4e1f44
lea eax, [esp + 0xd0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48d116
test dx, dx
je 0x48d112
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48d116
add eax, 4
add ecx, 4
test dx, dx
jne 0x48d0f0
xor eax, eax
jmp 0x48d11b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48d1db
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00408320
push eax
lea edx, [esp + 0x54]
push edx
lea esi, [esp + 0x3c]
mov byte [esp + 0x520], 7
call fcn.00482a90
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
mov byte [esp + 0x51c], 8
call fcn.004035c0
push eax
call fcn.0048ce50
add esp, 8
mov ecx, esi
call fcn.004034c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x518], 5
call fcn.004034c0
mov esi, dword [esp + 0x10]
jmp 0x48d1db
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0044c260
add esp, 0xc
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x51c], 9
call fcn.004034f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x518], 5
call fcn.004034c0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0x70]
call fcn.004035c0
push eax
call fcn.0048cb90
add esp, 8
lea eax, [esp + 0xa4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x48d361
mov bl, 0xb
jmp 0x48d200
test byte [esp + 0xa4], 0x10
je 0x48d2f7
mov ecx, 0x4e1f40
lea eax, [esp + 0xd0]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48d246
test dx, dx
je 0x48d242
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48d246
add eax, 4
add ecx, 4
test dx, dx
jne 0x48d220
xor eax, eax
jmp 0x48d24b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48d34a
mov ecx, 0x4e1f44
lea eax, [esp + 0xd0]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48d286
test dx, dx
je 0x48d282
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48d286
add eax, 4
add ecx, 4
test dx, dx
jne 0x48d260
xor eax, eax
jmp 0x48d28b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48d34a
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x38]
call fcn.00408320
push eax
lea edx, [esp + 0x54]
push edx
lea esi, [esp + 0x20]
mov byte [esp + 0x520], 0xa
call fcn.00482a90
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
mov byte [esp + 0x51c], bl
call fcn.004035c0
push eax
call fcn.0048ce50
add esp, 8
mov ecx, esi
call fcn.004034c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x518], 5
call fcn.004034c0
mov esi, dword [esp + 0x10]
jmp 0x48d34a
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0044c260
add esp, 0xc
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x51c], 0xc
call fcn.004034f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x518], 5
call fcn.004034c0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0x70]
call fcn.004035c0
push eax
call fcn.0048cb90
add esp, 8
lea eax, [esp + 0xa4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x48d200
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x2f4]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x48d390
cmp dword [ebp + 0xc], eax
je 0x48d390
push 4
push eax
lea edx, [esp + 0x2fc]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
sub dword [0x4f8a0c], 1
lea ecx, [esp + 0x6c]
call fcn.004034c0
lea ecx, [esp + 0x88]
call fcn.004034c0
lea ecx, [esp + 0x50]
call fcn.004034c0
mov eax, 1
jmp 0x48d3c4
sub dword [0x4f8a0c], ebx
xor eax, eax
mov ecx, dword [esp + 0x510]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x4fc]
xor ecx, esp
call fcn.004a1723
mov esp, ebp
pop ebp
ret