Function at 0x100021cb
Capabilities:
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3538
call fcn.10042c60
mov eax, dword [0x10086e84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x3534], eax
mov dword [ebp - 0x3538], ecx
je 0x1000220f
cmp ecx, edi
je 0x1000220f
cmp word [eax], di
je 0x1000220f
cmp word [ecx], di
je 0x1000220f
xor ebx, ebx
jmp 0x10002214
mov ebx, 0x80070057
mov esi, 0xa28
push esi
lea eax, [ebp - 0xa2e]
push edi
push eax
mov word [ebp - 0xa30], di
call fcn.10042010
push esi
lea eax, [ebp - 0x32de]
push edi
push eax
mov word [ebp - 0x32e0], di
call fcn.10042010
add esp, 0x18
cmp ebx, edi
jl 0x1000228c
push dword [ebp - 0x3534]
lea eax, [ebp - 0xa30]
push eax
call fcn.10042c3b
push dword [ebp - 0x3538]
lea eax, [ebp - 0x32e0]
push eax
call fcn.10042c3b
add esp, 0x10
cmp word [ebp - 0xa30], di
je 0x10002287
cmp word [ebp - 0x32e0], di
je 0x10002287
xor ebx, ebx
jmp 0x1000228c
mov ebx, 0x80070057
push esi
lea eax, [ebp - 0x145a]
push edi
push eax
mov word [ebp - 0x145c], di
call fcn.10042010
add esp, 0xc
cmp ebx, edi
jl 0x100022e9
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x145c]
push eax
call fcn.10042c3b
pop ecx
pop ecx
push 0x10070e0c
lea eax, [ebp - 0x145c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x100022e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x100022e7
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
push 0x24c
lea eax, [ebp - 0x352c]
push edi
push eax
mov dword [ebp - 0x3530], edi
call fcn.10042010
add esp, 0xc
cmp ebx, edi
jl 0x10002478
lea eax, [ebp - 0x3530]
push eax
lea eax, [ebp - 0x145c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, edi
mov dword [ebp - 0x3534], eax
je 0x1000232f
cmp eax, 0xffffffff
jne 0x10002345
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x10002343
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x10002464
test byte [ebp - 0x3530], 0x10
jne 0x10002441
lea eax, [ebp - 0x3504]
push 0x10070e08
push eax
call fcn.10042bdf
test eax, eax
pop ecx
pop ecx
je 0x10002441
lea eax, [ebp - 0x3504]
push 0x10070e00
push eax
call fcn.10042bdf
test eax, eax
pop ecx
pop ecx
je 0x10002441
push esi
lea eax, [ebp - 0x1e86]
push edi
push eax
mov word [ebp - 0x1e88], di
call fcn.10042010
push esi
lea eax, [ebp - 0x28b2]
push edi
push eax
mov word [ebp - 0x28b4], di
call fcn.10042010
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x1e88]
push eax
call fcn.10042c3b
lea eax, [ebp - 0x32e0]
push eax
lea eax, [ebp - 0x28b4]
push eax
call fcn.10042c3b
add esp, 0x28
lea eax, [ebp - 0x3504]
push eax
lea eax, [ebp - 0x1e88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp eax, edi
je 0x1000242b
lea eax, [ebp - 0x3504]
push eax
lea eax, [ebp - 0x28b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp eax, edi
je 0x1000242b
lea eax, [ebp - 0x28b4]
push eax
lea eax, [ebp - 0x1e88]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, edi
jne 0x10002441
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1000243f
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp dword [ebp - 0x3534], edi
je 0x10002478
lea eax, [ebp - 0x3530]
push eax
push dword [ebp - 0x3534]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000234d
cmp dword [ebp - 0x3534], edi
je 0x10002478
push dword [ebp - 0x3534]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10041ffa
leave
ret