Function at 0x416a80
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x50ff92
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x2b4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c4]
mov ebp, dword [esp + 0x2c8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2d4]
mov dword [esp + 0x54], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0
test eax, eax
jne 0x416b03
mov cl, byte [0x54834c]
mov dl, byte [0x54834d]
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], dl
jmp 0x416c16
cmp eax, 1
jne 0x416c16
mov ecx, dword [0x5487a0]
mov esi, dword [0x54879c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x416b91
xor ebx, ebx
cmp edi, eax
jb 0x416b42
call fcn.004ea9f7
mov esi, dword [0x54879c]
cmp dword [ebx + esi + 0x18], 8
jb 0x416b4f
mov esi, dword [ebx + esi + 4]
jmp 0x416b53
lea esi, [ebx + esi + 4]
push esi
push ebp
call fcn.004ec6cc
add esp, 8
test eax, eax
je 0x416b8c
mov ecx, dword [0x5487a0]
mov esi, dword [0x54879c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0x1c
cmp edi, eax
jb 0x416b42
jmp 0x416b91
mov byte [esp + 0x1a], 1
mov ecx, dword [0x5487b8]
mov esi, dword [0x5487b4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x416c16
xor ebx, ebx
cmp edi, eax
jb 0x416bc7
call fcn.004ea9f7
mov esi, dword [0x5487b4]
cmp dword [ebx + esi + 0x18], 8
jb 0x416bd4
mov esi, dword [ebx + esi + 4]
jmp 0x416bd8
lea esi, [ebx + esi + 4]
push esi
push ebp
call fcn.004ec6cc
add esp, 8
test eax, eax
je 0x416c11
mov ecx, dword [0x5487b8]
mov esi, dword [0x5487b4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add ebx, 0x1c
cmp edi, eax
jb 0x416bc7
jmp 0x416c16
mov byte [esp + 0x1b], 1
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
call fcn.00406d70
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x5c]
push edx
mov ebx, 0x51fd68
mov dword [esp + 0x2c4], 0
call fcn.00418040
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov dword [esp + 0x30], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416c7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x416c89
mov esi, 1
jmp 0x416ef3
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test byte [esp + 0x5c], 0x10
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
je 0x416f53
push 0x51fd6c
lea ecx, [esp + 0x8c]
push ecx
call esi
test eax, eax
je 0x417345
push 0x51fd70
lea edx, [esp + 0x8c]
push edx
call esi
test eax, eax
je 0x417345
mov esi, 0x54494c
lea esp, [esp]
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.004ec6cc
add esp, 8
test eax, eax
je 0x417345
add esi, 4
cmp esi, 0x54495c
jl 0x416ce0
cmp byte [esp + 0x1b], 0
je 0x416d25
lea edx, [esp + 0x88]
push edx
call fcn.00416520
add esp, 4
test eax, eax
jne 0x417345
cmp byte [esp + 0x1a], 0
je 0x416d44
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x88]
call fcn.004165c0
test eax, eax
jne 0x417345
mov ecx, dword [0x548770]
mov edi, dword [0x54876c]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
xor ebx, ebx
add eax, edx
je 0x416e28
xor esi, esi
cmp ebx, eax
jb 0x416d7e
call fcn.004ea9f7
mov edi, dword [0x54876c]
cmp dword [esi + edi + 0x34], 8
jb 0x416d8b
mov edi, dword [esi + edi + 0x20]
jmp 0x416d8f
lea edi, [esi + edi + 0x20]
lea eax, [esp + 0x88]
push edi
push eax
call fcn.004ec6cc
add esp, 8
test eax, eax
jne 0x416dfb
mov ecx, dword [0x548770]
mov edi, dword [0x54876c]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x416dd4
call fcn.004ea9f7
mov edi, dword [0x54876c]
cmp dword [esi + edi + 0x18], 8
jb 0x416de1
mov edi, dword [esi + edi + 4]
jmp 0x416de5
lea edi, [esi + edi + 4]
mov edx, dword [esp + 0x24]
push edi
push edx
call fcn.004ec6cc
add esp, 8
test eax, eax
je 0x417345
mov ecx, dword [0x548770]
mov edi, dword [0x54876c]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add esi, 0x38
cmp ebx, eax
jb 0x416d7e
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
lea ebx, [esp + 0x90]
call fcn.00418040
push eax
lea edx, [esp + 0x40]
push edx
mov ebx, 0x51fd78
mov byte [esp + 0x2cc], 1
call fcn.00418040
mov ecx, dword [esp + 0x2e4]
mov edx, dword [esp + 0x2e0]
inc ecx
push ecx
mov ecx, dword [esp + 0x2e0]
push edx
push ecx
lea edx, [esp + 0xa4]
mov byte [esp + 0x2d8], 2
mov eax, dword [eax]
push edx
push eax
call fcn.00416a80
mov esi, eax
mov byte [esp + 0x2e0], 1
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
add esp, 0x24
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416eb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2bc], 0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416edc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x417345
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [esp + 0x2bc], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416f29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.004ea83a
add esp, 0x2ac
ret
mov esi, 0x54495c
jmp 0x416f60
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x8c]
push edx
call fcn.004ec6cc
add esp, 8
test eax, eax
je 0x417345
add esi, 4
cmp esi, 0x544964
jl 0x416f60
cmp dword [esp + 0x2cc], 0
je 0x417059
lea eax, [esp + 0x88]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416fa0
sub eax, edx
sar eax, 1
cmp eax, 4
jle 0x417059
lea eax, [esp + eax*2 + 0x80]
push 0x51fd7c
push eax
call fcn.004ec6cc
add esp, 8
test eax, eax
jne 0x417059
lea esi, [esp + 0x28]
call fcn.00417830
lea eax, [esp + 0x88]
mov byte [esp + 0x2bc], 3
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416ff0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00418e70
mov esi, dword [esp + 0x28]
push 0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x417035
cmp dword [esp + 0x2d0], eax
je 0x417035
push 4
push eax
push esi
call ebp
lea eax, [esi - 0x10]
mov byte [esp + 0x2bc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417059
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x54]
push edx
lea ebx, [esp + 0x90]
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push 0
push eax
call edi
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417099
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x4c]
push edx
lea ebx, [esp + 0x90]
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4170dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x417345
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x8c]
call fcn.00406d70
lea edx, [esp + 0x2c]
push edx
lea eax, [esi + 4]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c0], 4
call fcn.00417f60
mov eax, dword [eax]
mov ecx, 0x51fd88
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41713c
test dx, dx
je 0x417138
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41713c
add eax, 4
add ecx, 4
test dx, dx
jne 0x417116
xor eax, eax
jmp 0x417141
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x38]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417166
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4172db
mov edx, dword [0x546fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x546fac
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
mov byte [esp + 0x2bc], 5
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x4171b3
mov ecx, 0x105
lea eax, [esp + 0x20]
call fcn.00407670
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
push 0
push 0x51fd94
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ec7bd
add esp, 8
test eax, eax
jl 0x417365
cmp eax, dword [esi - 8]
jg 0x417365
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
test edi, edi
jne 0x417217
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x88]
push eax
push ecx
push str._s_s.tmp
lea edi, [esp + 0x2c]
call fcn.004190d0
mov esi, dword [esp + 0x2c]
add esp, 0xc
jmp 0x41721e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
lea ebx, [esp + 0x90]
call fcn.00418040
mov eax, dword [eax]
push esi
push eax
call fcn.004ec7dc
mov edi, eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417262
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x41727c
push 4
push edi
push esi
call ebp
mov byte [esp + 0x2bc], 4
lea eax, [esi - 0x10]
jmp 0x417304
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x2d0], 0
je 0x4172ce
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x48]
push edx
lea ebx, [esp + 0x90]
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push 4
push 0
push eax
call ebp
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4172ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2bc], 4
lea eax, [esi - 0x10]
jmp 0x417304
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
push edx
lea ebx, [esp + 0x90]
call fcn.00418040
mov eax, dword [eax]
add esp, 8
push 4
push 0
push eax
call ebp
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41731d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2bc], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417345
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x5c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416c8f
lea esi, [eax + 1]
jmp 0x416ee8
push 0x80070057
call fcn.00402a90
int3