Function at 0x10045be0
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x968
lea ecx, [esp + 0x568]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x97c]
push ecx
push edi
mov dword [eax], 0
call sub.platform.dll_Ordinal_13
add esp, 8
test eax, eax
jne 0x10045c32
or ecx, 0xffffffff
lea edx, [esp + 0x578]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x578]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x178]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [sym.imp.MSVCRT.dll_strrchr]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x57c]
push ecx
call ebx
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x1004621f
lea edx, [esp + 0x178]
push 0x5c
push edx
call ebx
add esp, 8
test eax, eax
je 0x1004621f
lea edx, [eax + 1]
mov edi, 0x10265244
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x178]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x1004621f
inc ebp
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x1c]
lea esi, [esp + 0x64]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10045d11
test cl, cl
je 0x10045d0d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10045d11
add eax, 2
add esi, 2
test cl, cl
jne 0x10045ced
xor eax, eax
jmp 0x10045d16
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10045e62
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x24], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ecx - 4]
test edx, edx
jle 0x10045d56
mov cl, byte [esp + eax + 0x64]
cmp cl, 0x61
jl 0x10045dd5
cmp cl, 0x7a
jg 0x10045dd5
inc eax
cmp eax, edx
jl 0x10045d3b
lea edi, [esp + 0x578]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x178]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x17c]
push ecx
call ebx
lea edx, [eax + 1]
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x8000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x180]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x107ab964]
mov edx, dword [ecx]
call dword [edx + 4]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10045de2
mov dword [esp + 0x24], 1
jmp 0x10045e62
mov ecx, dword [0x107ab964]
push 0
lea eax, [esp + 0x57c]
push 0x8000
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10045e9e
mov ecx, dword [0x107ab964]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, dword [0x107ab964]
mov edi, eax
push ebp
mov dword [esp + 0x38], edi
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp edi, eax
mov dword [esp + 0x28], eax
je 0x10045ec2
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [0x107ab964]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [0x107ab964]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, dword [sym.imp.MSVCRT.dll_strrchr]
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x10045ce5
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x24], 1
jne 0x1004629f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x968
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [0x107ab964]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x968
ret
push 0
push 0
push 0
push 0
push 0x1000
call sub.platform.dll_Ordinal_24
mov esi, eax
add esp, 0x14
test esi, esi
mov dword [esp + 0x1c], esi
jne 0x10045ef1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10046207
mov edx, dword [0x107ab964]
lea ecx, [esp + 0x18]
push 1
push ecx
push esi
push 0x1000
push 0x1000
push 1
push edi
push ebx
push edx
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x10046286
cmp dword [esp + 0x18], 0x1000
jne 0x10046286
push 0
push 0
push 0
push 0
push 0x1000
call sub.platform.dll_Ordinal_24
mov edi, eax
add esp, 0x14
test edi, edi
mov dword [esp + 0x14], edi
jne 0x10045f64
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call sub.platform.dll_Ordinal_27
add esp, 4
jmp 0x10046207
mov edx, dword [esp + 0x28]
mov eax, dword [0x107ab964]
lea ecx, [esp + 0x18]
push 1
push ecx
push edi
push 0x1000
push 0x1000
push 1
push edx
push ebp
push eax
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x1004626f
mov eax, dword [esp + 0x18]
mov ecx, 0x1000
cmp eax, ecx
jne 0x1004626f
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10045fb0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10045fd3
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x1c]
push edx
call sub.platform.dll_Ordinal_27
mov eax, dword [esp + 0x18]
push eax
jmp 0x100461ff
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push 0x1000
push esi
call fcn.1000ba60
add esp, 0xc
test eax, eax
je 0x100461e9
fld qword [esp + 0x2c]
fcomp qword [0x10225280]
fnstsw ax
test ah, 1
jne 0x100461e9
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x18]
push 1
push edx
push esi
lea edi, [eax - 0x3000]
push 0x1000
push 0x1000
push edi
push eax
mov eax, dword [0x107ab964]
push ebx
push eax
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x1004622c
cmp dword [esp + 0x18], 0x1000
jne 0x1004622c
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, dword [0x107ab964]
push edx
push 0x1000
push 0x1000
push edi
push eax
push ebp
push ecx
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x100461e9
mov eax, dword [esp + 0x18]
mov ecx, 0x1000
cmp eax, ecx
jne 0x100461e9
mov edi, dword [esp + 0x14]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1004609e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100460b7
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x1c]
push eax
jmp 0x100461f5
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push 0x1000
push esi
call fcn.1000ba60
add esp, 0xc
test eax, eax
je 0x1004622c
fld qword [esp + 0x2c]
fcomp qword [0x10225280]
fnstsw ax
test ah, 1
jne 0x1004622c
mov ecx, dword [esp + 0x34]
push 1
mov eax, ecx
cdq
sub eax, edx
lea edx, [esp + 0x1c]
mov edi, eax
mov eax, dword [0x107ab964]
push edx
push esi
sar edi, 1
push 0x1000
push 0x1000
push edi
push ecx
push ebx
push eax
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x100461e9
cmp dword [esp + 0x18], 0x1000
jne 0x100461e9
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, dword [0x107ab964]
push edx
push 0x1000
push 0x1000
push edi
push eax
push ebp
push ecx
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x1004622c
mov eax, dword [esp + 0x18]
mov ecx, 0x1000
cmp eax, ecx
jne 0x1004622c
mov edi, dword [esp + 0x14]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10046185
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100460a2
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push 0x1000
push esi
call fcn.1000ba60
add esp, 0xc
test eax, eax
je 0x100461e9
fld qword [esp + 0x2c]
fcomp qword [0x10225280]
fnstsw ax
test ah, 1
jne 0x100461e9
push esi
call sub.platform.dll_Ordinal_27
mov edx, dword [esp + 0x18]
push edx
call sub.platform.dll_Ordinal_27
mov ecx, dword [0x107ab964]
add esp, 8
mov eax, dword [ecx]
push ebp
call dword [eax + 0x18]
mov ecx, dword [0x107ab964]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x18]
jmp 0x10045e7b
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call sub.platform.dll_Ordinal_27
mov ecx, dword [esp + 0x18]
push ecx
call sub.platform.dll_Ordinal_27
add esp, 8
mov ecx, dword [0x107ab964]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [0x107ab964]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x968
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call sub.platform.dll_Ordinal_27
mov edx, dword [esp + 0x18]
push edx
call sub.platform.dll_Ordinal_27
mov ecx, dword [0x107ab964]
add esp, 8
mov eax, dword [ecx]
push ebp
call dword [eax + 0x18]
mov ecx, dword [0x107ab964]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x968
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call sub.platform.dll_Ordinal_27
push edi
jmp 0x100461ff
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call sub.platform.dll_Ordinal_27
add esp, 4
jmp 0x10046207
lea edx, [esp + 0x20]
lea eax, [esp + 0x578]
xor ebx, ebx
push edx
push eax
mov dword [esp + 0x28], ebx
call fcn.100464e0
mov edi, eax
add esp, 8
cmp edi, 1
jne 0x100462d2
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x100462d2
push eax
call fcn.10046430
add esp, 4
lea ecx, [esp + 0x20]
lea edx, [esp + 0x178]
push ecx
push edx
mov dword [esp + 0x28], ebx
call fcn.100464e0
mov esi, eax
add esp, 8
cmp esi, 1
jne 0x10046303
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10046303
push eax
call fcn.10046430
add esp, 4
cmp edi, 1
jne 0x1004631a
push ebx
lea eax, [esp + 0x57c]
push ebx
push eax
call fcn.10028810
add esp, 0xc
cmp esi, 1
jne 0x10046331
push ebx
lea ecx, [esp + 0x17c]
push ebx
push ecx
call fcn.10028810
add esp, 0xc
mov edx, dword [esp + 0x984]
mov eax, dword [esp + 0x98c]
mov ecx, dword [esp + 0x988]
push ebx
push ebx
push edx
push eax
mov eax, dword [0x107ab964]
lea edx, [esp + 0x188]
push ecx
push edx
push eax
push 0x10227334
call fcn.10029df0
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0x20
lea ecx, [esp + 0x178]
push 0x80
push ecx
call esi
mov edi, dword [sym.imp.MSVCRT.dll_remove]
lea edx, [esp + 0x178]
push edx
call edi
add esp, 4
cmp eax, 0xffffffff
jne 0x100463a8
lea eax, [esp + 0x178]
push eax
push 0x10227334
call fcn.10029940
add esp, 8
lea ecx, [esp + 0x578]
push 0x80
push ecx
call esi
lea edx, [esp + 0x578]
push edx
call edi
add esp, 4
cmp eax, 0xffffffff
jne 0x100463de
lea eax, [esp + 0x578]
push eax
push 0x10227334
call fcn.10029940
add esp, 8
lea edi, [esp + 0x178]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x17c]
push ecx
call fcn.1003a5a0
lea edi, [esp + 0x580]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x580]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.1003a5a0
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x968
ret