Function at 0x10046ae
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
push ebx
push esi
push edi
mov esi, 0x1002610
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], 1
call fcn.010060c5
xor ebx, ebx
jmp 0x10048c8
push 0x3e8
lea eax, [ebp - 0x700]
push eax
push ebx
push edi
mov dword [ebp - 4], ebx
call fcn.01005fbe
test eax, eax
je 0x10048bb
cmp dword [0x100a194], ebx
jne 0x1004714
lea eax, [ebp - 0x700]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x700]
push eax
push 0x100ad60
call fcn.01002b66
push 0x3e8
lea eax, [ebp - 0x700]
push eax
push 1
push edi
call fcn.01005fbe
test eax, eax
je 0x10048bb
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x700]
push eax
push 0x100ad60
call fcn.01002b66
push 0x3e8
lea eax, [ebp - 0x700]
push eax
push 2
push edi
call fcn.01005fbe
test eax, eax
je 0x1004792
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x700]
push eax
push 0x100ad60
call fcn.01002b66
jmp 0x1004798
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x110]
push 0x1002608
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x10048bb
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
call fcn.010045a6
lea eax, [ebp - 0x110]
push eax
push 0x100a004
call fcn.0100449c
push 0x80
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp + 8]
call fcn.01003604
push ebx
lea eax, [ebp - 0x110]
push eax
mov al, byte [ebp - 0x214]
neg al
lea ecx, [ebp - 0x214]
sbb eax, eax
and eax, ecx
push eax
lea eax, [ebp - 0x318]
push eax
call dword [0x100a040]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x10048bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x10048bb
push 0x100a080
push 0x100ab00
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0100455c
test eax, eax
je 0x10048bb
cmp byte [0x100a080], bl
mov ecx, 0x100a080
jne 0x1004863
lea ecx, [ebp - 0x110]
cmp byte [0x100ab00], bl
je 0x1004872
mov eax, 0x100ab00
jmp 0x1004884
mov al, byte [ebp - 0x214]
neg al
lea edx, [ebp - 0x214]
sbb eax, eax
and eax, edx
push ebx
push ecx
push eax
lea eax, [ebp - 0x318]
push eax
call dword [0x100a040]
push 0x100a080
mov dword [ebp - 4], eax
push 0x100ab00
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.01003717
test eax, eax
jne 0x10048bb
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
and dword [ebp - 0xc], eax
push esi
push edi
call fcn.01005f96
mov edi, eax
cmp edi, ebx
jne 0x10046d6
push 0x1002600
push dword [ebp + 8]
call fcn.010060c5
cmp eax, ebx
mov dword [ebp - 8], eax
mov esi, 0x100ab00
je 0x1004a8b
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x3e8
lea eax, [ebp - 0x700]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call fcn.01005fbe
test eax, eax
je 0x1004a6d
cmp dword [0x100a194], ebx
jne 0x1004935
lea eax, [ebp - 0x700]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x700]
push eax
push 0x100ad60
call fcn.01002b66
push 0x3e8
lea eax, [ebp - 0x700]
push eax
push 1
push dword [ebp - 8]
call fcn.01005fbe
test eax, eax
je 0x1004a6d
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x700]
push eax
push 0x100ad60
call fcn.01002b66
lea eax, [ebp - 0x110]
push 0x1002608
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1004a6d
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
call fcn.010045a6
lea eax, [ebp - 0x110]
push eax
push 0x100a004
call fcn.0100449c
push 0x80
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x214]
push eax
call edi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1004a5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1004a5b
push 0x100a080
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0100455c
test eax, eax
je 0x1004a5b
cmp byte [0x100a080], bl
mov ecx, 0x100a080
jne 0x1004a23
lea ecx, [ebp - 0x110]
cmp byte [0x100ab00], bl
mov eax, esi
jne 0x1004a33
lea eax, [ebp - 0x214]
push ebx
push ecx
push eax
call edi
push 0x100a080
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.01003717
test eax, eax
jne 0x1004a5b
mov dword [ebp - 4], ebx
push 0x80
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 4]
and dword [ebp - 0xc], eax
push 0x1002600
push dword [ebp - 8]
call fcn.01005f96
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x10048f5
push 0x10025f8
push dword [ebp + 8]
call fcn.010060c5
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1004c23
mov edi, 0x104
jmp 0x1004aaf
mov esi, 0x100ab00
push 0x3e8
lea eax, [ebp - 0x700]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call fcn.01005fbe
test eax, eax
je 0x1004c05
cmp dword [0x100a194], ebx
jne 0x1004aef
lea eax, [ebp - 0x700]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x700]
push eax
push 0x100ad60
call fcn.01002b66
push edi
lea eax, [ebp - 0x110]
push eax
push 1
push dword [ebp - 8]
call fcn.01005fbe
test eax, eax
je 0x1004c05
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
pop ecx
push dword [ebp + 8]
call fcn.01003604
lea eax, [ebp - 0x318]
push eax
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1470000
lea eax, [ebp - 0x214]
push eax
call dword [0x100a044]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1004bc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1004bbc
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.010044c3
test eax, eax
je 0x1004bbc
push esi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x1004bbc
lea eax, [ebp - 0x318]
push eax
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1470000
push esi
call dword [0x100a044]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1004bbc
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x1004c05
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
pop ecx
lea esi, [ebp - 0x318]
lea eax, [ebp - 0x110]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x1004bf9
cmp cl, bl
je 0x1004bf5
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x1004bf9
inc eax
inc eax
inc esi
inc esi
cmp cl, bl
jne 0x1004bdb
xor eax, eax
jmp 0x1004bfe
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1004c05
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
and dword [ebp - 0xc], eax
push 0x10025f8
push dword [ebp - 8]
call fcn.01005f96
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1004aaa
call fcn.010036eb
mov edi, 0x10025f0
push edi
push dword [ebp + 8]
call fcn.010060c5
jmp 0x1004d7c
push 0x3e8
lea ecx, [ebp - 0x700]
push ecx
push 1
push eax
call fcn.01005fbe
test eax, eax
je 0x1004d73
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x700]
push eax
push 0x100ad60
call fcn.01002b66
lea eax, [ebp - 0x110]
push 0x1002608
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1004d73
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1004d73
lea eax, [ebp - 0x110]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
pop ecx
mov esi, eax
pop ecx
inc esi
test byte [ebp - 0x840], 0x10
jne 0x1004d52
cmp dword [0x100a194], ebx
jne 0x1004cec
lea eax, [ebp - 0x814]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x814]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1004cf8
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1004d52
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x80
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1004d52
lea eax, [ebp - 0x110]
push eax
push 0x100a004
call fcn.0100449c
lea eax, [ebp - 0x840]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1004cbf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push dword [ebp - 8]
call fcn.01005f96
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1004c3b
push 0x10025e8
mov esi, 0x1002424
push esi
push dword [ebp + 8]
call fcn.010060e4
cmp eax, ebx
mov edi, 0x100226b
je 0x1004e0a
push 0x3e8
lea ecx, [ebp - 0x700]
push ecx
push eax
call fcn.01006086
test eax, eax
je 0x1004e0a
lea eax, [ebp - 0x700]
push 0x3d
push eax
call dword [sym.imp.msvcrt.dll_strchr]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x100ad5c], eax
je 0x1004e96
jmp 0x1004dde
cmp cl, 0x20
jg 0x1004dea
inc eax
mov dword [0x100ad5c], eax
mov cl, byte [eax]
cmp cl, bl
jne 0x1004dd9
push eax
mov dword [0x100aaec], edi
call fcn.01003e68
mov dword [0x100ad5c], eax
mov dword [0x101b0c4], 0x100ad60
jmp 0x1004e96
push 0x10025e4
push esi
push dword [ebp + 8]
call fcn.010060e4
cmp eax, ebx
je 0x1004e96
push 0x3e8
lea ecx, [ebp - 0x700]
push ecx
push 1
push eax
call fcn.01005fbe
test eax, eax
je 0x1004e96
lea eax, [ebp - 0x700]
push eax
call fcn.01003e68
mov dword [0x100aaec], eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x700]
push eax
push 0x100ad60
call fcn.01002b66
lea eax, [ebp - 0x110]
push eax
call fcn.01003e68
mov dword [0x100ad5c], eax
lea eax, [ebp - 0x110]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x1004e85
mov byte [eax], bl
lea eax, [ebp - 0x110]
push eax
call fcn.01003e68
mov dword [0x101b0c4], eax
cmp dword [0x100a194], ebx
jne 0x1004eb0
push edi
push ebx
push 0xc
push 0x68
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4