Function at 0x10057910
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x45c]
sub esp, 0x45c
push 0xffffffffffffffff
push 0x100a1a4d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100ef034]
xor eax, ebp
mov dword [ebp + 0x458], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x1c], esi
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x10057e97
push 0x104
lea eax, [ebp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [edi]
lea eax, [ebp + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10057e97
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + 0x250]
push eax
call ebx
test eax, eax
jle 0x100579f2
cmp word [str.temp], 0
mov edx, str.temp
mov edi, dword [edi]
mov ecx, edi
je 0x100579df
nop
movzx esi, word [ecx]
test si, si
je 0x100579dc
mov ax, word [edx]
or esi, 0x20
or ax, 0x20
add ecx, 2
cmp si, ax
je 0x100579d3
mov edi, ecx
mov edx, str.temp
jmp 0x100579d6
add edx, 2
cmp word [edx], 0
jne 0x100579b0
mov esi, dword [ebp - 0x1c]
xor eax, eax
cmp word [edi], ax
cmovne eax, edi
test eax, eax
je 0x10057e97
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
mov ecx, dword [esi]
mov edx, 0x3b
push eax
call fcn.100562d0
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.10078b00
mov ecx, dword [edi]
add esp, 0x10
sub ecx, 0x10
call fcn.10040870
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
push 2
push 0x100c7e08
call fcn.1003f390
mov edi, dword [ebp - 0x38]
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or esi, 0xffffffff
mov dword [ebp - 0x34], eax
cmp eax, esi
je 0x10057e31
lea eax, [ebp + 0x2c]
push eax
call ebx
test eax, eax
jle 0x10057e31
test byte [ebp], 0x10
mov ebx, dword [ebp - 0x24]
jne 0x10057bfd
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.10040870
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
push 1
push 0x100c8670
call fcn.1003f390
lea ecx, [ebp + 0x2c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10057ab0
sub ecx, edx
lea eax, [ebp + 0x2c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.1003f390
mov eax, dword [ebp - 0x24]
test ebx, ebx
mov esi, dword [ebp - 0x10]
sete bl
mov dword [ebp - 0x30], ebx
test eax, eax
je 0x10057bd3
mov ecx, dword [ebp - 0x20]
add ecx, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ecx]
call fcn.1003aaa0
test eax, eax
je 0x10057eba
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
push ebx
call fcn.1003f670
test al, al
jne 0x10057b49
test ebx, ebx
jne 0x10057b27
xor ecx, ecx
jmp 0x10057b3f
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10057b30
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x18]
call fcn.1003f950
mov byte [ebp - 4], 6
test esi, esi
je 0x10057eba
mov eax, dword [ebp - 0x18]
mov edx, esi
mov ecx, eax
nop dword [eax]
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x10057b86
test bx, bx
je 0x10057b82
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x10057b86
add ecx, 4
add edx, 4
test bx, bx
jne 0x10057b60
xor ecx, ecx
jmp 0x10057b8b
sbb ecx, ecx
or ecx, 1
mov ebx, dword [ebp - 0x30]
test ecx, ecx
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 4
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10057bba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
inc eax
add ecx, 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], ecx
cmp eax, dword [ebp - 0x24]
jb 0x10057af2
test bl, bl
je 0x10057bde
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10057bfa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10057e25
test byte [ebp], 0x10
jne 0x10057dee
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.10040870
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x30]
push 1
push eax
lea ecx, [ebp - 0x10]
call fcn.10040a00
mov byte [ebp - 4], 0xb
mov ecx, 0x100c8670
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10057c76
test dx, dx
je 0x10057c72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10057c76
add eax, 4
add ecx, 4
test dx, dx
jne 0x10057c50
xor esi, esi
jmp 0x10057c7b
sbb esi, esi
or esi, 1
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10057c9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10057cad
push 1
push 0x100c8670
lea ecx, [ebp - 0x10]
call fcn.1003f390
lea ecx, [ebp + 0x2c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10057cb3
sub ecx, edx
lea eax, [ebp + 0x2c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.1003f390
mov esi, dword [ebp - 0x10]
test ebx, ebx
sete al
mov byte [ebp - 0x11], al
test ebx, ebx
je 0x10057dc7
mov ecx, dword [ebp - 0x20]
add ecx, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], ecx
mov ebx, dword [ecx]
call fcn.1003aaa0
test eax, eax
je 0x10057eba
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x18]
push ebx
call fcn.1003f670
test al, al
jne 0x10057d49
test ebx, ebx
jne 0x10057d27
xor eax, eax
jmp 0x10057d3f
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10057d30
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x18]
call fcn.1003f950
mov byte [ebp - 4], 0xe
test esi, esi
je 0x10057eba
mov eax, dword [ebp - 0x18]
mov edx, esi
mov ecx, eax
nop dword [eax]
mov bx, word [ecx]
cmp bx, word [edx]
jne 0x10057d86
test bx, bx
je 0x10057d82
mov bx, word [ecx + 2]
cmp bx, word [edx + 2]
jne 0x10057d86
add ecx, 4
add edx, 4
test bx, bx
jne 0x10057d60
xor ecx, ecx
jmp 0x10057d8b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x10057e07
mov byte [ebp - 4], 0xa
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10057dab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
inc eax
add ecx, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ecx
cmp eax, dword [ebp - 0x24]
jb 0x10057cf2
mov al, byte [ebp - 0x11]
test al, al
je 0x10057dd2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10057dee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10057e25
mov ebx, dword [ebp - 0x24]
jmp 0x10057c12
mov byte [ebp - 4], 0xa
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10057dcb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10057dcb
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
mov eax, dword [ebp - 0x2c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x10057e55
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10057e89
push 0x1003a440
push dword [eax - 4]
lea esi, [eax - 4]
push 8
push eax
call fcn.10077004
mov eax, dword [esi]
lea eax, [eax*8 + 4]
push eax
push esi
call fcn.1007716e
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x458]
xor ecx, ebp
call fcn.1007685e
lea esp, [ebp + 0x45c]
pop ebp
ret
push 0x80004005
call fcn.100374f0
int3