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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1022cb18
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x264]
push eax
call fcn.1001f510
push 0x1026b650
lea eax, [ebp - 0x264]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.10026709
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x270]
or edi, 0xffffffff
mov dword [ebp - 0x26c], eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x101988aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x26c]
cmp eax, 0xffffffff
je 0x10198bca
mov ebx, dword [ebp - 0x26c]
lea esp, [esp]
mov ecx, 0x10244718
lea eax, [ebp - 0x234]
jmp 0x101988d0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101988f6
test dx, dx
je 0x101988f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101988f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x101988d0
xor eax, eax
jmp 0x101988fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x10198bad
mov eax, 0x1026b65c
lea ecx, [ebp - 0x234]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10198936
test dx, dx
je 0x10198932
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10198936
add ecx, 4
add eax, 4
test dx, dx
jne 0x10198910
xor eax, eax
jmp 0x1019893b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10198bad
test byte [ebp - 0x260], 0x10
lea eax, [ebp - 0x264]
push 0x1023d4d4
push eax
je 0x10198a03
lea eax, [ebp - 0x274]
push eax
call fcn.10026709
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.10026709
add esp, 0x18
mov edx, dword [ebp - 0x274]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101989a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x268]
cmp dword [eax - 4], 1
jle 0x101989c4
push dword [eax - 0xc]
lea ecx, [ebp - 0x268]
call fcn.1000d3e0
mov eax, dword [ebp - 0x268]
push eax
call fcn.10198810
add esp, 4
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edx, dword [ebp - 0x268]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10198bad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10198bad
lea eax, [ebp - 0x27c]
push eax
call fcn.10026709
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.10026709
add esp, 0x18
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x278]
test eax, eax
mov eax, edi
sete bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10198a54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x27c]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10198a75
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x10198ba7
push 0x1023d4d4
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.10026709
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.10026709
push str._.tmp
push eax
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 6
push eax
call fcn.10026709
mov esi, eax
push 0x1023d4d4
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x284]
push eax
call fcn.10026709
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10026709
add esp, 0x3c
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x280]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10198b23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x284]
mov eax, edi
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10198b44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x288]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10198b65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28c]
mov eax, edi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10198b86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x290]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10198ba7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x26c]
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101988c0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x264]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10198bec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b70aa
mov esp, ebp
pop ebp
ret