Function at 0x4f55a6
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push ebx
push esi
push edi
mov edi, 1
xor eax, eax
mov dword [ebp - 0x14], eax
xor edx, edx
mov dword [ebp - 0x18], edx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], 0xffffffff
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
xor edx, edx
mov esi, edx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x4f5600
push 0
push 0
mov ecx, dword [ebp + 8]
push dword [ecx]
push 0
call fcn.00479438
jmp 0x4f5ecf
push 0x3e7
lea eax, [ebp - 0x410]
push eax
call fcn.0042e6b1
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 4]
cmp byte [ebx], 0x2d
jne 0x4f5822
inc ebx
jmp 0x4f57e6
cmp al, 0x63
jne 0x4f5636
mov dword [ebp - 4], 1
jmp 0x4f57e5
cmp al, 0x69
jne 0x4f5646
mov dword [ebp - 8], 1
jmp 0x4f57e5
cmp al, 0x64
jne 0x4f5656
mov dword [ebp - 0xc], 1
jmp 0x4f57e5
cmp al, 0x61
jne 0x4f5666
mov dword [ebp - 0x10], 1
jmp 0x4f57e5
cmp al, 0x6c
jne 0x4f56b6
inc ebx
cmp byte [ebx], 0
jne 0x4f5691
mov eax, dword [ebp + 8]
cmp dword [eax + edi*4 + 4], 0
je 0x4f5691
mov edx, dword [ebp + 8]
push dword [edx + edi*4 + 4]
call fcn.004e54ab
test eax, eax
je 0x4f5691
inc edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + edi*4]
cmp byte [ebx], 0
je 0x4f56a0
push ebx
call fcn.005570e0
pop ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jg 0x4f57f0
mov dword [ebp - 0x24], 1
jmp 0x4f57f0
mov al, byte [ebx]
cmp al, 0x73
je 0x4f56c4
cmp al, 0x77
jne 0x4f57e5
cmp al, 0x77
jne 0x4f56cf
mov dword [ebp - 0x1c], 1
inc ebx
cmp byte [ebx], 0
jne 0x4f56fa
inc edi
mov edx, dword [ebp + 8]
cmp dword [edx + edi*4], 0
jne 0x4f56f4
push 0
push 0
mov ecx, dword [ebp + 8]
push dword [ecx]
push 0
call fcn.00479438
jmp 0x4f5ecf
mov eax, dword [ebp + 8]
mov ebx, dword [eax + edi*4]
cmp byte [ebx], 0x22
jne 0x4f578c
push 0x3e7
lea eax, [ebp - 0x410]
push eax
call fcn.0042e6b1
inc ebx
mov edx, dword [ebp + 8]
lea esi, [edx + edi*4]
cmp byte [ebp - 0x410], 0
je 0x4f5738
push 0x56ceb1
lea eax, [ebp - 0x410]
push eax
call fcn.0054e1b0
add esp, 8
push ebx
lea edx, [ebp - 0x410]
push edx
call fcn.0054e1b0
add esp, 8
push 0x22
lea ecx, [ebp - 0x410]
push ecx
call fcn.0054e1ec
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x4f5769
inc edi
add esi, 4
mov ebx, dword [esi]
test ebx, ebx
jne 0x4f571b
test ebx, ebx
je 0x4f5777
cmp byte [ebx], 0x22
jne 0x4f5777
mov byte [ebx], 0
jmp 0x4f57d3
push 3
push 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0
call fcn.00479438
jmp 0x4f5ecf
push edi
lea esi, [ebp - 0x410]
mov edi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push 0x20
lea eax, [ebp - 0x410]
push eax
call fcn.0054e1ec
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4f57d3
mov edx, dword [ebp - 0x28]
mov byte [edx], 0
lea ecx, [ebp - 0x410]
push ecx
call fcn.0054e28c
pop ecx
mov dword [ebp - 0x14], eax
jmp 0x4f57f0
inc ebx
mov al, byte [ebx]
test al, al
jne 0x4f5626
cmp dword [ebp - 0xc], 0
je 0x4f5803
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4f5803
mov dword [ebp - 0x24], 0xfffffffe
inc edi
mov edx, dword [ebp + 8]
cmp dword [edx + edi*4], 0
jne 0x4f5822
push 0
push 0
mov ecx, dword [ebp + 8]
push dword [ecx]
push 0
call fcn.00479438
jmp 0x4f5ecf
push 0
push 0x104
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call fcn.004e648f
mov edi, eax
test edi, edi
jge 0x4f5850
push 3
push 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0
call fcn.00479438
jmp 0x4f5ecf
push dword [ebp + 0xc]
push dword [ebp + 0xc]
call fcn.0042cf68
test eax, eax
jne 0x4f5874
push 3
push 0
mov edx, dword [ebp + 8]
push dword [edx]
push 0
call fcn.00479438
jmp 0x4f5ecf
push dword [ebp + 0xc]
call fcn.0042c88b
test eax, eax
je 0x4f5895
push 4
push 0
mov ecx, dword [ebp + 8]
push dword [ecx]
push 0
call fcn.00479438
jmp 0x4f5ecf
push 0x588ce3
push 0x588be3
push 0x588ae3
push 0x588ae0
push dword [ebp + 0xc]
call fcn.0050e5fc
add esp, 0x14
cmp byte [0x588ce3], 0
je 0x4f58e1
push 0x56ceb4
push 0x588ce3
call fcn.0054e450
add esp, 8
test eax, eax
jne 0x4f58e1
push dword [ebp + 0xc]
push 0
push 0
push 0
call fcn.004ac64e
cmp dword [ebp - 4], 0
je 0x4f5900
push 0x40
push 0x56ceba
push dword [ebp + 0xc]
call fcn.005541f4
add esp, 0xc
mov esi, eax
jmp 0x4f59f8
push 1
push dword [ebp + 0xc]
call fcn.0042cbc2
test eax, eax
jne 0x4f5927
push 0x40
push 0x56cebd
push dword [ebp + 0xc]
call fcn.005541f4
add esp, 0xc
mov esi, eax
jmp 0x4f59f8
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4f5953
cmp dword [ebp - 0x14], 0
jg 0x4f5953
push 0x40
push 0x56cec0
push dword [ebp + 0xc]
call fcn.005541f4
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x18], 1
jmp 0x4f59f8
push 0
call fcn.00553350
pop ecx
push eax
push 0x581f80
push 0x56cec4
push 0x582088
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0x40
push 0x56ceca
push 0x582088
call fcn.005541f4
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x4f59a2
push 4
push 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0
call fcn.00479438
jmp 0x4f5ecf
push 0x40
push 0x56cecd
push dword [ebp + 0xc]
call fcn.005541f4
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4f59e4
push esi
call fcn.005516ec
pop ecx
push 0x582088
call sub.KERNEL32.dll_DeleteFileA
push 4
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push dword [edx]
push 0
call fcn.00479438
jmp 0x4f5ecf
push 0x1000
push 0
push 0
push dword [ebp - 0x20]
call fcn.00552f84
add esp, 0x10
test esi, esi
jne 0x4f5a21
cmp dword [ebp - 0x20], 0
je 0x4f5a0b
push dword [ebp - 0x20]
call fcn.005516ec
pop ecx
push 4
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ecx]
push 0
call fcn.00479438
jmp 0x4f5ecf
push 0x1000
push 0
push 0
push esi
call fcn.00552f84
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov edx, dword [ebp + 8]
cmp dword [edx + edi*4 + 4], 0
je 0x4f5a77
push dword [ebp + 8]
push dword [ebp + 0xc]
inc edi
push edi
call fcn.004e56b5
push dword [ebp + 0xc]
call fcn.0054e28c
pop ecx
test eax, eax
jle 0x4f5a77
mov edx, dword [ebp + 0xc]
cmp byte [edx + eax - 1], 0xa
je 0x4f5a77
push 0x56ced0
push dword [ebp + 0xc]
call fcn.0054e1b0
add esp, 8
cmp dword [ebp - 0x20], 0
jne 0x4f5b2f
cmp dword [ebp - 0x18], 0
je 0x4f5ac5
push 2
push 0
push esi
call fcn.00551ee4
add esp, 0xc
push esi
call fcn.00551f58
pop ecx
cmp eax, 0xffffffff
je 0x4f5ac5
push 0
dec eax
push eax
push esi
call fcn.00551ee4
add esp, 0xc
push esi
call fcn.00554234
pop ecx
cmp eax, 0xffffffff
je 0x4f5ac5
cmp eax, 0xa
je 0x4f5ac5
mov dword [ebp - 0x18], 2
push 2
push 0
push esi
call fcn.00551ee4
add esp, 0xc
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
je 0x4f5afc
cmp dword [ebp - 0x18], 2
jne 0x4f5aee
push esi
push 0x56ced3
call fcn.00551cc0
add esp, 8
push esi
push dword [ebp + 0xc]
call fcn.00551cc0
add esp, 8
jmp 0x4f5b1e
cmp dword [ebp - 8], 0
je 0x4f5b1e
mov eax, dword [ebp + 0xc]
push esi
mov esi, 0x56ced6
mov edi, eax
mov eax, edi
movsw word es:[edi], word [esi]
pop esi
push esi
push dword [ebp + 0xc]
call fcn.00551cc0
add esp, 8
push esi
call fcn.005516ec
pop ecx
mov eax, 1
jmp 0x4f5ecf
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0
jne 0x4f5b47
mov ecx, dword [ebp + 0xc]
push esi
mov esi, 0x56ced9
mov edi, ecx
mov eax, edi
movsw word es:[edi], word [esi]
pop esi
push 0
push 0
push esi
call fcn.00551ee4
add esp, 0xc
cmp dword [ebp - 0x14], 0
jle 0x4f5cf0
jmp 0x4f5cb0
xor edi, edi
cmp dword [ebp - 0x14], 0
je 0x4f5c17
cmp dword [ebp - 0x1c], 0
je 0x4f5bd8
push 0xd
push dword [ebp + 0x10]
call fcn.0054e1ec
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4f5b8b
mov byte [ebx], 0
push 0xa
push dword [ebp + 0x10]
call fcn.0054e1ec
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4f5ba7
mov eax, dword [ebp - 0x28]
mov byte [eax], 0
push 1
push 0
push dword [ebp + 0x10]
lea edx, [ebp - 0x410]
push edx
call fcn.0051f0b8
test eax, eax
je 0x4f5bc3
mov edi, 1
test ebx, ebx
je 0x4f5bca
mov byte [ebx], 0xd
cmp dword [ebp - 0x28], 0
je 0x4f5c17
mov eax, dword [ebp - 0x28]
mov byte [eax], 0xa
jmp 0x4f5c17
push dword [ebp - 0x14]
lea edx, [ebp - 0x410]
push edx
push dword [ebp + 0x10]
call fcn.0054e4e8
add esp, 0xc
test eax, eax
jne 0x4f5c17
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov al, byte [ecx + eax]
cmp al, 0xa
je 0x4f5c12
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
cmp al, 0xd
je 0x4f5c12
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
cmp al, 0x20
jne 0x4f5c17
mov edi, 1
test edi, edi
je 0x4f5ca4
cmp dword [ebp - 8], 0
je 0x4f5c3f
push esi
push dword [ebp + 0xc]
call fcn.00551cc0
add esp, 8
push esi
push dword [ebp + 0x10]
call fcn.00551cc0
add esp, 8
jmp 0x4f5c9d
cmp dword [ebp - 0xc], 0
jne 0x4f5c9d
cmp dword [ebp - 0x10], 0
je 0x4f5c91
push 0xd
push dword [ebp + 0x10]
call fcn.0054e1ec
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4f5c61
mov byte [ebx], 0
push 0xa
push dword [ebp + 0x10]
call fcn.0054e1ec
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4f5c77
mov byte [ebx], 0
push esi
push dword [ebp + 0x10]
call fcn.00551cc0
add esp, 8
push esi
push dword [ebp + 0xc]
call fcn.00551cc0
add esp, 8
jmp 0x4f5c9d
push esi
push dword [ebp + 0xc]
call fcn.00551cc0
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4f5cb0
push esi
push dword [ebp + 0x10]
call fcn.00551cc0
add esp, 8
push dword [ebp - 0x20]
push 0x3e7
push dword [ebp + 0x10]
call fcn.0055181c
add esp, 0xc
test eax, eax
jne 0x4f5b63
cmp dword [ebp - 0x14], 0
je 0x4f5e3a
cmp dword [ebp - 0xc], 0
jne 0x4f5e3a
push esi
push dword [ebp + 0xc]
call fcn.00551cc0
add esp, 8
jmp 0x4f5e3a
push 0x3e7
lea edx, [ebp - 0x410]
push edx
call fcn.0042e6b1
jmp 0x4f5e07
cmp dword [ebp - 0xc], 0
je 0x4f5d2b
cmp dword [ebp - 0x24], 0xfffffffe
jne 0x4f5d2b
cmp byte [ebp - 0x410], 0
je 0x4f5d2b
push esi
lea ecx, [ebp - 0x410]
push ecx
call fcn.00551cc0
add esp, 8
cmp dword [ebp - 0x24], 1
jne 0x4f5dba
cmp dword [ebp - 8], 0
je 0x4f5d55
push esi
push dword [ebp + 0xc]
call fcn.00551cc0
add esp, 8
push esi
push dword [ebp + 0x10]
call fcn.00551cc0
add esp, 8
jmp 0x4f5db3
cmp dword [ebp - 0xc], 0
jne 0x4f5db3
cmp dword [ebp - 0x10], 0
je 0x4f5da7
push 0xd
push dword [ebp + 0x10]
call fcn.0054e1ec
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4f5d77
mov byte [ebx], 0
push 0xa
push dword [ebp + 0x10]
call fcn.0054e1ec
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4f5d8d
mov byte [ebx], 0
push esi
push dword [ebp + 0x10]
call fcn.00551cc0
add esp, 8
push esi
push dword [ebp + 0xc]
call fcn.00551cc0
add esp, 8
jmp 0x4f5db3
push esi
push dword [ebp + 0xc]
call fcn.00551cc0
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x4f5e07
cmp dword [ebp - 0xc], 0
je 0x4f5df2
cmp dword [ebp - 0x24], 0xfffffffe
jne 0x4f5df2
mov edx, dword [ebp + 0x10]
push esi
lea esi, [ebp - 0x410]
mov edi, edx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4f5e07
cmp dword [ebp - 0x24], 0
jle 0x4f5dfb
dec dword [ebp - 0x24]
push esi
push dword [ebp + 0x10]
call fcn.00551cc0
add esp, 8
push dword [ebp - 0x20]
push 0x3e7
push dword [ebp + 0x10]
call fcn.0055181c
add esp, 0xc
test eax, eax
jne 0x4f5d06
cmp dword [ebp - 0xc], 0
jne 0x4f5e3a
cmp dword [ebp - 0x24], 0
jle 0x4f5e3a
push esi
push dword [ebp + 0xc]
call fcn.00551cc0
add esp, 8
push dword [ebp - 0x20]
call fcn.005516ec
pop ecx
push esi
call fcn.005516ec
pop ecx
push 0x588ce3
push 0x588be3
push 0x588ae3
push 0x588ae0
push str._s_s_s_s
push dword [ebp + 0xc]
call sub.USER32.dll_wsprintfA
add esp, 0x18
push dword [ebp + 0xc]
call sub.KERNEL32.dll_DeleteFileA
push dword [ebp + 0xc]
push 0x582088
call sub.KERNEL32.dll_MoveFileA
test eax, eax
jne 0x4f5eca
push 0
push dword [ebp + 0xc]
push 0x582088
call sub.KERNEL32.dll_CopyFileA
test eax, eax
jne 0x4f5ec0
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
push 0
push 0x12c3
call fcn.0042c771
push eax
push 0x5803c4
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4f5ecf
push 0x582088
call sub.KERNEL32.dll_DeleteFileA
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc