Function at 0x4f3da2
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 0x4f3dfc
push 0
push 0
mov ecx, dword [ebp + 8]
push dword [ecx]
push 0
call fcn.00479c10
jmp 0x4f46aa
push 0x3e7
lea eax, [ebp - 0x410]
push eax
call fcn.0042e3f0
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 4]
cmp byte [ebx], 0x2d
jne 0x4f401e
inc ebx
jmp 0x4f3fe2
cmp al, 0x63
jne 0x4f3e32
mov dword [ebp - 4], 1
jmp 0x4f3fe1
cmp al, 0x69
jne 0x4f3e42
mov dword [ebp - 8], 1
jmp 0x4f3fe1
cmp al, 0x64
jne 0x4f3e52
mov dword [ebp - 0xc], 1
jmp 0x4f3fe1
cmp al, 0x61
jne 0x4f3e62
mov dword [ebp - 0x10], 1
jmp 0x4f3fe1
cmp al, 0x6c
jne 0x4f3eb2
inc ebx
cmp byte [ebx], 0
jne 0x4f3e8d
mov eax, dword [ebp + 8]
cmp dword [eax + edi*4 + 4], 0
je 0x4f3e8d
mov edx, dword [ebp + 8]
push dword [edx + edi*4 + 4]
call fcn.004e43bb
test eax, eax
je 0x4f3e8d
inc edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + edi*4]
cmp byte [ebx], 0
je 0x4f3e9c
push ebx
call fcn.00555124
pop ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jg 0x4f3fec
mov dword [ebp - 0x24], 1
jmp 0x4f3fec
mov al, byte [ebx]
cmp al, 0x73
je 0x4f3ec0
cmp al, 0x77
jne 0x4f3fe1
cmp al, 0x77
jne 0x4f3ecb
mov dword [ebp - 0x1c], 1
inc ebx
cmp byte [ebx], 0
jne 0x4f3ef6
inc edi
mov edx, dword [ebp + 8]
cmp dword [edx + edi*4], 0
jne 0x4f3ef0
push 0
push 0
mov ecx, dword [ebp + 8]
push dword [ecx]
push 0
call fcn.00479c10
jmp 0x4f46aa
mov eax, dword [ebp + 8]
mov ebx, dword [eax + edi*4]
cmp byte [ebx], 0x22
jne 0x4f3f88
push 0x3e7
lea eax, [ebp - 0x410]
push eax
call fcn.0042e3f0
inc ebx
mov edx, dword [ebp + 8]
lea esi, [edx + edi*4]
cmp byte [ebp - 0x410], 0
je 0x4f3f34
push 0x56ad8d
lea eax, [ebp - 0x410]
push eax
call fcn.0054c1f4
add esp, 8
push ebx
lea edx, [ebp - 0x410]
push edx
call fcn.0054c1f4
add esp, 8
push 0x22
lea ecx, [ebp - 0x410]
push ecx
call fcn.0054c230
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x4f3f65
inc edi
add esi, 4
mov ebx, dword [esi]
test ebx, ebx
jne 0x4f3f17
test ebx, ebx
je 0x4f3f73
cmp byte [ebx], 0x22
jne 0x4f3f73
mov byte [ebx], 0
jmp 0x4f3fcf
push 3
push 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0
call fcn.00479c10
jmp 0x4f46aa
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.0054c230
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4f3fcf
mov edx, dword [ebp - 0x28]
mov byte [edx], 0
lea ecx, [ebp - 0x410]
push ecx
call fcn.0054c2d0
pop ecx
mov dword [ebp - 0x14], eax
jmp 0x4f3fec
inc ebx
mov al, byte [ebx]
test al, al
jne 0x4f3e22
cmp dword [ebp - 0xc], 0
je 0x4f3fff
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4f3fff
mov dword [ebp - 0x24], 0xfffffffe
inc edi
mov edx, dword [ebp + 8]
cmp dword [edx + edi*4], 0
jne 0x4f401e
push 0
push 0
mov ecx, dword [ebp + 8]
push dword [ecx]
push 0
call fcn.00479c10
jmp 0x4f46aa
push 0
push 0x104
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call fcn.004e5393
mov edi, eax
test edi, edi
jge 0x4f404c
push 3
push 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0
call fcn.00479c10
jmp 0x4f46aa
push dword [ebp + 0xc]
push dword [ebp + 0xc]
call fcn.0042cd5e
test eax, eax
jne 0x4f4070
push 3
push 0
mov edx, dword [ebp + 8]
push dword [edx]
push 0
call fcn.00479c10
jmp 0x4f46aa
push 0x586e7f
push 0x586d7f
push 0x586c7f
push 0x586c7c
push dword [ebp + 0xc]
call fcn.0050ca44
add esp, 0x14
cmp byte [0x586e7f], 0
je 0x4f40bc
push 0x56ad90
push 0x586e7f
call fcn.0054c494
add esp, 8
test eax, eax
jne 0x4f40bc
push dword [ebp + 0xc]
push 0
push 0
push 0
call fcn.004ac86a
cmp dword [ebp - 4], 0
je 0x4f40db
push 0x40
push 0x56ad96
push dword [ebp + 0xc]
call fcn.00552238
add esp, 0xc
mov esi, eax
jmp 0x4f41d3
push 1
push dword [ebp + 0xc]
call fcn.0042c9b5
test eax, eax
jne 0x4f4102
push 0x40
push 0x56ad99
push dword [ebp + 0xc]
call fcn.00552238
add esp, 0xc
mov esi, eax
jmp 0x4f41d3
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4f412e
cmp dword [ebp - 0x14], 0
jg 0x4f412e
push 0x40
push 0x56ad9c
push dword [ebp + 0xc]
call fcn.00552238
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x18], 1
jmp 0x4f41d3
push 0
call fcn.00551394
pop ecx
push eax
push 0x57fd38
push 0x56ada0
push 0x57fe40
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0x40
push 0x56ada6
push 0x57fe40
call fcn.00552238
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x4f417d
push 4
push 0
mov eax, dword [ebp + 8]
push dword [eax]
push 0
call fcn.00479c10
jmp 0x4f46aa
push 0x40
push 0x56ada9
push dword [ebp + 0xc]
call fcn.00552238
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4f41bf
push esi
call fcn.0054f730
pop ecx
push 0x57fe40
call sub.KERNEL32.dll_DeleteFileA
push 4
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push dword [edx]
push 0
call fcn.00479c10
jmp 0x4f46aa
push 0x1000
push 0
push 0
push dword [ebp - 0x20]
call fcn.00550fc8
add esp, 0x10
test esi, esi
jne 0x4f41fc
cmp dword [ebp - 0x20], 0
je 0x4f41e6
push dword [ebp - 0x20]
call fcn.0054f730
pop ecx
push 4
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ecx]
push 0
call fcn.00479c10
jmp 0x4f46aa
push 0x1000
push 0
push 0
push esi
call fcn.00550fc8
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 0x4f4252
push dword [ebp + 8]
push dword [ebp + 0xc]
inc edi
push edi
call fcn.004e45c5
push dword [ebp + 0xc]
call fcn.0054c2d0
pop ecx
test eax, eax
jle 0x4f4252
mov edx, dword [ebp + 0xc]
cmp byte [edx + eax - 1], 0xa
je 0x4f4252
push 0x56adac
push dword [ebp + 0xc]
call fcn.0054c1f4
add esp, 8
cmp dword [ebp - 0x20], 0
jne 0x4f430a
cmp dword [ebp - 0x18], 0
je 0x4f42a0
push 2
push 0
push esi
call fcn.0054ff28
add esp, 0xc
push esi
call fcn.0054ff9c
pop ecx
cmp eax, 0xffffffff
je 0x4f42a0
push 0
dec eax
push eax
push esi
call fcn.0054ff28
add esp, 0xc
push esi
call fcn.00552278
pop ecx
cmp eax, 0xffffffff
je 0x4f42a0
cmp eax, 0xa
je 0x4f42a0
mov dword [ebp - 0x18], 2
push 2
push 0
push esi
call fcn.0054ff28
add esp, 0xc
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0
je 0x4f42d7
cmp dword [ebp - 0x18], 2
jne 0x4f42c9
push esi
push 0x56adaf
call fcn.0054fd04
add esp, 8
push esi
push dword [ebp + 0xc]
call fcn.0054fd04
add esp, 8
jmp 0x4f42f9
cmp dword [ebp - 8], 0
je 0x4f42f9
mov eax, dword [ebp + 0xc]
push esi
mov esi, 0x56adb2
mov edi, eax
mov eax, edi
movsw word es:[edi], word [esi]
pop esi
push esi
push dword [ebp + 0xc]
call fcn.0054fd04
add esp, 8
push esi
call fcn.0054f730
pop ecx
mov eax, 1
jmp 0x4f46aa
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0
jne 0x4f4322
mov ecx, dword [ebp + 0xc]
push esi
mov esi, 0x56adb5
mov edi, ecx
mov eax, edi
movsw word es:[edi], word [esi]
pop esi
push 0
push 0
push esi
call fcn.0054ff28
add esp, 0xc
cmp dword [ebp - 0x14], 0
jle 0x4f44cb
jmp 0x4f448b
xor edi, edi
cmp dword [ebp - 0x14], 0
je 0x4f43f2
cmp dword [ebp - 0x1c], 0
je 0x4f43b3
push 0xd
push dword [ebp + 0x10]
call fcn.0054c230
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4f4366
mov byte [ebx], 0
push 0xa
push dword [ebp + 0x10]
call fcn.0054c230
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4f4382
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.0051d2f8
test eax, eax
je 0x4f439e
mov edi, 1
test ebx, ebx
je 0x4f43a5
mov byte [ebx], 0xd
cmp dword [ebp - 0x28], 0
je 0x4f43f2
mov eax, dword [ebp - 0x28]
mov byte [eax], 0xa
jmp 0x4f43f2
push dword [ebp - 0x14]
lea edx, [ebp - 0x410]
push edx
push dword [ebp + 0x10]
call fcn.0054c52c
add esp, 0xc
test eax, eax
jne 0x4f43f2
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
mov al, byte [ecx + eax]
cmp al, 0xa
je 0x4f43ed
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
cmp al, 0xd
je 0x4f43ed
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
cmp al, 0x20
jne 0x4f43f2
mov edi, 1
test edi, edi
je 0x4f447f
cmp dword [ebp - 8], 0
je 0x4f441a
push esi
push dword [ebp + 0xc]
call fcn.0054fd04
add esp, 8
push esi
push dword [ebp + 0x10]
call fcn.0054fd04
add esp, 8
jmp 0x4f4478
cmp dword [ebp - 0xc], 0
jne 0x4f4478
cmp dword [ebp - 0x10], 0
je 0x4f446c
push 0xd
push dword [ebp + 0x10]
call fcn.0054c230
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4f443c
mov byte [ebx], 0
push 0xa
push dword [ebp + 0x10]
call fcn.0054c230
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4f4452
mov byte [ebx], 0
push esi
push dword [ebp + 0x10]
call fcn.0054fd04
add esp, 8
push esi
push dword [ebp + 0xc]
call fcn.0054fd04
add esp, 8
jmp 0x4f4478
push esi
push dword [ebp + 0xc]
call fcn.0054fd04
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4f448b
push esi
push dword [ebp + 0x10]
call fcn.0054fd04
add esp, 8
push dword [ebp - 0x20]
push 0x3e7
push dword [ebp + 0x10]
call fcn.0054f860
add esp, 0xc
test eax, eax
jne 0x4f433e
cmp dword [ebp - 0x14], 0
je 0x4f4615
cmp dword [ebp - 0xc], 0
jne 0x4f4615
push esi
push dword [ebp + 0xc]
call fcn.0054fd04
add esp, 8
jmp 0x4f4615
push 0x3e7
lea edx, [ebp - 0x410]
push edx
call fcn.0042e3f0
jmp 0x4f45e2
cmp dword [ebp - 0xc], 0
je 0x4f4506
cmp dword [ebp - 0x24], 0xfffffffe
jne 0x4f4506
cmp byte [ebp - 0x410], 0
je 0x4f4506
push esi
lea ecx, [ebp - 0x410]
push ecx
call fcn.0054fd04
add esp, 8
cmp dword [ebp - 0x24], 1
jne 0x4f4595
cmp dword [ebp - 8], 0
je 0x4f4530
push esi
push dword [ebp + 0xc]
call fcn.0054fd04
add esp, 8
push esi
push dword [ebp + 0x10]
call fcn.0054fd04
add esp, 8
jmp 0x4f458e
cmp dword [ebp - 0xc], 0
jne 0x4f458e
cmp dword [ebp - 0x10], 0
je 0x4f4582
push 0xd
push dword [ebp + 0x10]
call fcn.0054c230
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4f4552
mov byte [ebx], 0
push 0xa
push dword [ebp + 0x10]
call fcn.0054c230
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4f4568
mov byte [ebx], 0
push esi
push dword [ebp + 0x10]
call fcn.0054fd04
add esp, 8
push esi
push dword [ebp + 0xc]
call fcn.0054fd04
add esp, 8
jmp 0x4f458e
push esi
push dword [ebp + 0xc]
call fcn.0054fd04
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x4f45e2
cmp dword [ebp - 0xc], 0
je 0x4f45cd
cmp dword [ebp - 0x24], 0xfffffffe
jne 0x4f45cd
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 0x4f45e2
cmp dword [ebp - 0x24], 0
jle 0x4f45d6
dec dword [ebp - 0x24]
push esi
push dword [ebp + 0x10]
call fcn.0054fd04
add esp, 8
push dword [ebp - 0x20]
push 0x3e7
push dword [ebp + 0x10]
call fcn.0054f860
add esp, 0xc
test eax, eax
jne 0x4f44e1
cmp dword [ebp - 0xc], 0
jne 0x4f4615
cmp dword [ebp - 0x24], 0
jle 0x4f4615
push esi
push dword [ebp + 0xc]
call fcn.0054fd04
add esp, 8
push dword [ebp - 0x20]
call fcn.0054f730
pop ecx
push esi
call fcn.0054f730
pop ecx
push 0x586e7f
push 0x586d7f
push 0x586c7f
push 0x586c7c
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 0x57fe40
call sub.KERNEL32.dll_MoveFileA
test eax, eax
jne 0x4f46a5
push 0
push dword [ebp + 0xc]
push 0x57fe40
call sub.KERNEL32.dll_CopyFileA
test eax, eax
jne 0x4f469b
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
push 0
push 0x12c3
call fcn.0042c564
push eax
push 0x57e17c
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4f46aa
push 0x57fe40
call sub.KERNEL32.dll_DeleteFileA
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc