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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x46
push 0
push 0
dec ecx
jne 0x486a64
push ebx
push esi
push edi
lea eax, [ebp - 0x180]
mov edx, dword [0x408440]
call fcn.00405b48
mov esi, 0x494dd4
xor eax, eax
push ebp
push 0x487283
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x181], 0
cmp byte [0x494df8], 6
je 0x486aab
cmp byte [0x494df8], 7
jne 0x486ae1
lea eax, [ebp - 0x198]
call fcn.004231ac
push dword [ebp - 0x198]
push 0x4872a0
lea eax, [ebp - 0x19c]
call fcn.00485f70
push dword [ebp - 0x19c]
lea eax, [esi + 0x18]
mov edx, 3
call fcn.00405444
jmp 0x486b15
lea eax, [ebp - 0x1a0]
call fcn.004231ac
push dword [ebp - 0x1a0]
push 0x4872b8
lea eax, [ebp - 0x1a4]
call fcn.00485f70
push dword [ebp - 0x1a4]
lea eax, [esi + 0x18]
mov edx, 3
call fcn.00405444
xor eax, eax
push ebp
push 0x486b4b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1b4]
mov eax, dword [0x494dbc]
call fcn.0046f594
lea eax, [ebp - 0x1b4]
lea edx, [ebp - 8]
call fcn.0046f60c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x486b5f
mov edx, dword [0x48f3f8]
mov edx, dword [edx]
lea eax, [ebp - 0x1b8]
mov ecx, 0x4872d0
call fcn.004053c8
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [esi + 0x18]
mov edx, dword [ebp - 8]
call fcn.00486788
test al, al
je 0x487227
mov eax, dword [esi + 0x18]
call fcn.00486058
test al, al
je 0x487227
lea eax, [ebp - 0x18]
mov edx, dword [esi + 0x14]
call fcn.00405148
lea eax, [ebp - 0x1c]
mov edx, dword [esi + 4]
call fcn.00405148
lea eax, [ebp - 0x10]
call fcn.00485f70
lea eax, [esi + 0x14]
mov ecx, 0x4872e4
mov edx, dword [ebp - 0x10]
call fcn.004053c8
lea eax, [ebp - 0x14]
call fcn.00485f70
lea eax, [esi + 4]
mov ecx, 0x4872e4
mov edx, dword [ebp - 0x14]
call fcn.004053c8
push dword [esi + 0x18]
push 0x4872f4
push dword [ebp - 0x18]
lea eax, [ebp - 0x1bc]
mov edx, 3
call fcn.00405444
mov ebx, dword [ebp - 0x1bc]
push dword [esi + 0x18]
push 0x4872f4
push dword [esi + 0x14]
lea eax, [ebp - 0x1c0]
mov edx, 3
call fcn.00405444
mov edi, dword [ebp - 0x1c0]
mov dword [ebp - 0x1c4], edi
mov eax, dword [ebp - 0x1c4]
call fcn.00405540
push eax
mov dword [ebp - 0x1c8], ebx
mov eax, dword [ebp - 0x1c8]
call fcn.00405540
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
push dword [esi + 0x18]
push 0x4872f4
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1cc]
mov edx, 3
call fcn.00405444
mov ebx, dword [ebp - 0x1cc]
push dword [esi + 0x18]
push 0x4872f4
push dword [esi + 4]
lea eax, [ebp - 0x1d0]
mov edx, 3
call fcn.00405444
mov edi, dword [ebp - 0x1d0]
mov dword [ebp - 0x1c4], edi
mov eax, dword [ebp - 0x1c4]
call fcn.00405540
push eax
mov dword [ebp - 0x1c8], ebx
mov eax, dword [ebp - 0x1c8]
call fcn.00405540
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
lea eax, [ebp - 0xc]
call fcn.00485f70
lea eax, [ebp - 0x1d4]
mov ecx, 0x487300
mov edx, dword [esi + 0x18]
call fcn.004053c8
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x180]
mov edx, 0x10
call fcn.0040a12c
mov ebx, eax
test ebx, ebx
jne 0x486df1
mov eax, dword [ebp - 0x16c]
mov edx, 0x487310
call fcn.004054d8
je 0x486ddc
mov eax, dword [ebp - 0x16c]
mov edx, 0x48731c
call fcn.004054d8
je 0x486ddc
push dword [esi + 0x18]
push 0x4872f4
push dword [ebp - 0x16c]
lea eax, [ebp - 0x1d8]
mov edx, 3
call fcn.00405444
mov eax, dword [ebp - 0x1d8]
call fcn.0040a06c
and eax, 0x10
cmp eax, 0x10
jne 0x486ddc
push dword [esi + 0x18]
push 0x4872f4
push dword [ebp - 0x16c]
lea eax, [ebp - 0x1dc]
mov edx, 3
call fcn.00405444
mov edi, dword [ebp - 0x1dc]
push dword [esi + 0x18]
push 0x4872f4
push dword [ebp - 0xc]
lea eax, [ebp - 0x1e0]
mov edx, 3
call fcn.00405444
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
call fcn.00405540
push eax
mov dword [ebp - 0x1c4], edi
mov eax, dword [ebp - 0x1c4]
call fcn.00405540
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x189], al
jmp 0x486df1
lea eax, [ebp - 0x180]
call fcn.0040a17c
mov ebx, eax
test ebx, ebx
je 0x486d03
lea eax, [ebp - 0x180]
call fcn.0040a1a0
push dword [esi + 0x18]
push 0x4872f4
push dword [ebp - 0xc]
push 0x487328
lea eax, [ebp - 0x1e4]
mov edx, 4
call fcn.00405444
mov eax, dword [ebp - 0x1e4]
lea ecx, [ebp - 0x180]
mov edx, 0x3f
call fcn.0040a12c
mov ebx, eax
test ebx, ebx
jne 0x486f24
mov eax, dword [ebp - 0x16c]
mov edx, 0x487310
call fcn.004054d8
jne 0x486e72
mov eax, dword [ebp - 0x16c]
mov edx, 0x48731c
call fcn.004054d8
jne 0x486e72
lea eax, [ebp - 0x180]
call fcn.0040a17c
mov ebx, eax
jmp 0x486f1c
push dword [esi + 0x18]
push 0x4872f4
push dword [ebp - 0xc]
push 0x4872f4
push dword [ebp - 0x16c]
lea eax, [ebp - 0x1e8]
mov edx, 5
call fcn.00405444
mov edi, dword [ebp - 0x1e8]
push dword [esi + 0x18]
push 0x4872f4
push dword [ebp - 0xc]
push 0x4872f4
lea eax, [ebp - 0x1f0]
call fcn.00485f70
push dword [ebp - 0x1f0]
push 0x487338
lea eax, [ebp - 0x1ec]
mov edx, 6
call fcn.00405444
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x190]
call fcn.00405540
push eax
mov dword [ebp - 0x1c4], edi
mov eax, dword [ebp - 0x1c4]
call fcn.00405540
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x191], al
lea eax, [ebp - 0x180]
call fcn.0040a17c
mov ebx, eax
test ebx, ebx
je 0x486e3c
lea eax, [ebp - 0x180]
call fcn.0040a1a0
lea eax, [ebp - 0x20]
push eax
mov ecx, 3
mov edx, 1
mov eax, dword [esi + 0x18]
call fcn.004055a8
cmp byte [0x494df8], 6
je 0x487018
cmp byte [0x494df8], 7
je 0x487018
push 0
push dword [ebp - 0x20]
push 0x487348
push 0x48737c
lea eax, [ebp - 0x1f4]
mov edx, 3
call fcn.00405444
mov eax, dword [ebp - 0x1f4]
call fcn.00405540
push eax
push dword [esi + 0x18]
push 0x4872f4
push dword [ebp - 0xc]
push 0x487390
lea eax, [ebp - 0x1f8]
mov edx, 4
call fcn.00405444
mov eax, dword [ebp - 0x1f8]
call fcn.00405540
push eax
call sub.kernel32.dll_CopyFileA
push dword [esi + 0x18]
push 0x4872f4
push dword [ebp - 0xc]
push 0x487390
lea eax, [ebp - 0x200]
mov edx, 4
call fcn.00405444
mov eax, dword [ebp - 0x200]
call fcn.00405540
mov edx, eax
lea eax, [ebp - 0x1fc]
call fcn.004052a8
mov ebx, dword [ebp - 0x1fc]
mov dword [ebp - 0x1c4], ebx
mov eax, dword [ebp - 0x1c4]
call fcn.00405540
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x487093
push dword [esi + 0x18]
push 0x4872f4
push dword [ebp - 0xc]
push 0x487390
lea eax, [ebp - 0x204]
mov edx, 4
call fcn.00405444
mov ebx, dword [ebp - 0x204]
push dword [esi + 0x18]
push 0x4872f4
push dword [ebp - 0xc]
push 0x4873a4
lea eax, [ebp - 0x208]
mov edx, 4
call fcn.00405444
mov edi, dword [ebp - 0x208]
mov dword [ebp - 0x1c4], edi
mov eax, dword [ebp - 0x1c4]
call fcn.00405540
push eax
mov dword [ebp - 0x1c8], ebx
mov eax, dword [ebp - 0x1c8]
call fcn.00405540
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
push dword [esi + 0x18]
push 0x4872f4
push dword [esi + 4]
lea eax, [ebp - 0x20c]
mov edx, 3
call fcn.00405444
mov eax, dword [ebp - 0x20c]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
call fcn.0048683c
test al, al
jne 0x487110
cmp byte [0x494df8], 6
je 0x487103
cmp byte [0x494df8], 7
je 0x487103
push dword [ebp - 0x20]
push 0x487348
push 0x48737c
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.00405444
mov eax, dword [ebp - 0x210]
call fcn.00405540
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [esi + 0x18]
call fcn.00423754
jmp 0x487227
mov eax, dword [ebp - 4]
call fcn.00405540
push eax
call sub.kernel32.dll_DeleteFileA
cmp byte [0x494df8], 6
je 0x487130
cmp byte [0x494df8], 7
jne 0x4871ab
lea eax, [ebp - 0x218]
call fcn.004231ac
push dword [ebp - 0x218]
push 0x4872a0
push 0x4873b8
lea eax, [ebp - 0x214]
mov edx, 3
call fcn.00405444
mov eax, dword [ebp - 0x214]
call fcn.00409ea8
test al, al
jne 0x487220
lea eax, [ebp - 0x220]
call fcn.004231ac
push dword [ebp - 0x220]
push 0x4872a0
push 0x4873b8
lea eax, [ebp - 0x21c]
mov edx, 3
call fcn.00405444
mov eax, dword [ebp - 0x21c]
call fcn.004031e4
call fcn.00403030
jmp 0x487220
lea eax, [ebp - 0x228]
call fcn.004231ac
push dword [ebp - 0x228]
push 0x4872b8
push 0x4873c8
lea eax, [ebp - 0x224]
mov edx, 3
call fcn.00405444
mov eax, dword [ebp - 0x224]
call fcn.00409ea8
test al, al
jne 0x487220
lea eax, [ebp - 0x230]
call fcn.004231ac
push dword [ebp - 0x230]
push 0x4872b8
push 0x4873c8
lea eax, [ebp - 0x22c]
mov edx, 3
call fcn.00405444
mov eax, dword [ebp - 0x22c]
call fcn.004031e4
call fcn.00403030
mov byte [ebp - 0x181], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48728a
lea eax, [ebp - 0x230]
mov edx, 0x1a
call fcn.004050d4
lea eax, [ebp - 0x1c0]
mov edx, 3
call fcn.004050d4
lea eax, [ebp - 0x1a4]
mov edx, 4
call fcn.004050d4
lea eax, [ebp - 0x180]
mov edx, dword [0x408440]
call fcn.00405c18
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.004050d4
ret