Function at 0x410820
Capabilities:
Delete file
Enumerate files on windows
Move file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46dc9d
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x498700]
xor eax, esp
mov dword [esp + 0x490], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x498700]
xor eax, esp
push eax
lea eax, [esp + 0x4ac]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4bc]
mov esi, ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x18], ebp
call fcn.0043ec5a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x410886
push 0x80004005
call fcn.004016d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x4b4], 0
call fcn.0043ec5a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4108bb
push 0x80004005
call fcn.004016d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
push 0x4823ac
lea ecx, [esp + 0x40]
push esi
push ecx
mov byte [esp + 0x4c0], 1
call fcn.00406360
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x34], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41091a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x410970
lea eax, [ebx - 0x10]
mov byte [esp + 0x4b4], 0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410942
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x4b4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410969
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x410c94
lea eax, [esp + 0x78]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410977
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401ca0
mov esi, dword [esp + 0x14]
mov ecx, 0x480fc4
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4109c6
test dx, dx
je 0x4109c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4109c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4109a0
xor eax, eax
jmp 0x4109cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x410c28
mov ecx, 0x4823b4
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410a06
test dx, dx
je 0x410a02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410a06
add eax, 4
add ecx, 4
test dx, dx
jne 0x4109e0
xor eax, eax
jmp 0x410a0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x410c28
test byte [esp + 0x4c], 0x10
jne 0x410c28
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ebx, dword [ebp + 8]
cmp dword [ebp + 4], ebx
mov edi, eax
mov dword [esp + 0x28], edi
jbe 0x410a3d
call fcn.0044ec76
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x410a4a
call fcn.0044ec76
lea ecx, [esp + 0x28]
mov eax, esi
mov dword [esp + 0x48], esi
call fcn.00412a70
mov ebx, eax
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 8]
cmp dword [eax + 4], esi
jbe 0x410a70
call fcn.0044ec76
mov eax, dword [esp + 0x18]
test ebp, ebp
je 0x410a78
cmp ebp, eax
je 0x410a7d
call fcn.0044ec76
cmp ebx, esi
je 0x410c24
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x2a0]
push 0x104
push eax
call fcn.0044e1bb
add esp, 0xc
lea ecx, [esp + 0x29c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea edx, [esp + 0x29c]
push edx
lea ecx, [esp + 0x28]
call fcn.004018b0
mov esi, dword [esp + 0x40]
push eax
lea eax, [esp + 0x3c]
push esi
push eax
mov byte [esp + 0x4c0], 2
call fcn.004062a0
push str..delete
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x4cc], 3
call fcn.00406360
push edi
push eax
lea edx, [esp + 0x50]
mov bl, 4
push edx
mov byte [esp + 0x4d8], bl
call fcn.00406360
add esp, 0x24
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b8], 5
call fcn.00409000
mov byte [esp + 0x4b4], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4b4], 3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4b4], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 1
mov byte [esp + 0x4b4], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410bb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push esi
push edx
call fcn.004062a0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4b8], 6
call fcn.00409000
mov byte [esp + 0x4b4], bl
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 0x410c04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
push 9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x410c1d
push edi
jmp 0x410c1e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x410970
mov byte [esp + 0x4b4], al
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410c67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x4b4], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410c92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x4ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x490]
xor ecx, esp
call fcn.0044de0c
add esp, 0x4a4
ret