Function at 0x40bc90
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bcb3
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x43b1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1e0], esi
call fcn.00413f80
mov dword [ebp - 0x1e4], eax
xor ebx, ebx
mov eax, 0xf
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 0x1c8], ebx
mov byte [ebp - 0x1d8], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0x1a0], bl
mov dword [ebp - 0x1a8], eax
mov eax, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1ac], ebx
mov byte [ebp - 0x1bc], bl
lea edx, [eax + 1]
jmp 0x40bd20
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bd20
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x1bc]
call fcn.00402640
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
lea edx, [ebp - 0x1bc]
push edx
push 0x5c
mov byte [ebp - 4], 2
call fcn.00418710
add esp, 0x10
test al, al
mov edi, 0x10
sete byte [ebp - 0x1d9]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1a8], edi
jb 0x40bd82
mov eax, dword [ebp - 0x1bc]
push eax
call fcn.00418f39
add esp, 4
cmp byte [ebp - 0x1d9], bl
je 0x40bda6
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bd90
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x1d8]
call fcn.00402640
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, 0xf
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 3
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bde0
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x168]
call fcn.00402640
push 0x5c
push 1
lea ecx, [ebp - 0x168]
call fcn.00404510
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1d8]
push eax
lea ecx, [ebp - 0x168]
call fcn.00404680
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x168]
push ecx
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 4
call fcn.00402400
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0041aba3
add esp, 4
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x14c]
push edx
lea ecx, [ebp - 0x130]
call fcn.00402400
mov eax, dword [ebp - 0x120]
or ecx, 0xffffffff
sub ecx, eax
cmp ecx, 1
jbe 0x40c0cb
lea esi, [eax + 1]
cmp esi, 0xfffffffe
ja 0x40c0cb
mov ecx, dword [ebp - 0x11c]
cmp ecx, esi
jae 0x40bebe
push eax
push esi
lea ecx, [ebp - 0x130]
call fcn.00402000
jmp 0x40beda
cmp esi, ebx
jne 0x40bee2
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x120], ebx
cmp ecx, edi
jae 0x40bed8
lea eax, [ebp - 0x130]
mov byte [eax], bl
mov eax, dword [ebp - 0x120]
cmp esi, ebx
seta cl
cmp cl, bl
je 0x40bf1e
mov ecx, dword [ebp - 0x130]
cmp dword [ebp - 0x11c], edi
jae 0x40befd
lea ecx, [ebp - 0x130]
mov byte [eax + ecx], 0x2e
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x120], esi
cmp dword [ebp - 0x11c], edi
jae 0x40bf1b
lea eax, [ebp - 0x130]
mov byte [esi + eax], bl
lea edx, [ebp - 0x1bc]
push edx
call fcn.0040ba10
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 6
call fcn.00404680
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1a8], edi
jb 0x40bf5b
mov eax, dword [ebp - 0x1bc]
push eax
call fcn.00418f39
add esp, 4
lea ecx, [ebp - 0x130]
push ecx
call fcn.0040a270
add esp, 4
test eax, eax
jne 0x40be70
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x130]
push edx
lea ecx, [ebp - 0x168]
call fcn.00402400
mov eax, dword [ebp - 0x168]
cmp dword [ebp - 0x154], edi
jae 0x40bf9b
lea eax, [ebp - 0x168]
push eax
push str.Trying_to_copy_LSP_to:__s_n
call fcn.004131d0
mov eax, dword [ebp - 0x168]
add esp, 8
cmp dword [ebp - 0x154], edi
jae 0x40bfbd
lea eax, [ebp - 0x168]
push ebx
push eax
mov eax, dword [ebp - 0x1e0]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40c0d5
mov esi, dword [ebp - 0x168]
cmp dword [ebp - 0x154], edi
jae 0x40bfe8
lea esi, [ebp - 0x168]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x1e0]
push eax
push esi
push ecx
push str.Failed_to_copy_LSP:__s_to:__s_with_error_code:__i_n
call fcn.00413260
add esp, 0x10
cmp dword [ebp - 0x11c], edi
jb 0x40c01b
mov edx, dword [ebp - 0x130]
push edx
call fcn.00418f39
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
cmp dword [ebp - 0x138], edi
jb 0x40c049
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x154], edi
jb 0x40c072
mov ecx, dword [ebp - 0x168]
push ecx
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
cmp dword [ebp - 0x18c], edi
jb 0x40c09b
mov edx, dword [ebp - 0x1a0]
push edx
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0x1a0], bl
cmp dword [ebp - 0x1c4], edi
jb 0x40c0c4
mov eax, dword [ebp - 0x1d8]
push eax
call fcn.00418f39
add esp, 4
xor eax, eax
jmp 0x40c6f1
push str.string_too_long
call fcn.00418ce7
push str.Copy_success__n
call fcn.004131d0
add esp, 4
mov dword [ebp - 0x170], 0xf
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
mov edx, dword [ebp - 0x14c]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x138], edi
jae 0x40c110
lea edx, [ebp - 0x14c]
mov eax, edx
mov dword [ebp - 0x1a8], 0xf
mov dword [ebp - 0x1ac], ebx
mov byte [ebp - 0x1bc], bl
lea esi, [eax + 1]
jmp 0x40c130
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c130
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x1bc]
call fcn.00402640
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.0040a270
add esp, 4
mov esi, eax
cmp dword [ebp - 0x1a8], edi
jb 0x40c16e
mov edx, dword [ebp - 0x1bc]
push edx
call fcn.00418f39
add esp, 4
cmp esi, ebx
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
je 0x40c38c
lea esp, [esp]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x130]
call fcn.00402400
push 5
push str..old.
lea ecx, [ebp - 0x130]
call fcn.00404770
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.0040ba10
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 8
call fcn.00404680
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1a8], edi
jb 0x40c1e4
mov edx, dword [ebp - 0x1bc]
push edx
call fcn.00418f39
add esp, 4
lea eax, [ebp - 0x130]
push eax
call fcn.0040a270
add esp, 4
test eax, eax
jne 0x40c180
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x184]
call fcn.00402400
push str.Trying_to_rename_running_LSP_n
call fcn.004131d0
mov ecx, dword [ebp - 0x184]
add esp, 4
cmp dword [ebp - 0x170], edi
jae 0x40c22d
lea ecx, [ebp - 0x184]
mov eax, dword [ebp - 0x14c]
cmp dword [ebp - 0x138], edi
jae 0x40c241
lea eax, [ebp - 0x14c]
push ecx
push eax
call esi
test eax, eax
jne 0x40c385
cmp dword [ebp - 0x170], edi
mov edi, dword [ebp - 0x184]
jae 0x40c261
lea edi, [ebp - 0x184]
cmp dword [ebp - 0x138], 0x10
mov esi, dword [ebp - 0x14c]
jae 0x40c276
lea esi, [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.Failed_to_rename_LSP:__s_to:__s_with_error_code:__i_n
call fcn.00413260
mov esi, 0x10
add esp, 0x10
cmp dword [ebp - 0x170], esi
jb 0x40c2a8
mov edx, dword [ebp - 0x184]
push edx
call fcn.00418f39
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
cmp dword [ebp - 0x11c], esi
jb 0x40c2d6
mov eax, dword [ebp - 0x130]
push eax
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
cmp dword [ebp - 0x138], esi
jb 0x40c2ff
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x154], esi
jb 0x40c328
mov edx, dword [ebp - 0x168]
push edx
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
cmp dword [ebp - 0x18c], esi
jb 0x40c351
mov eax, dword [ebp - 0x1a0]
push eax
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0x1a0], bl
cmp dword [ebp - 0x1c4], esi
jb 0x40c0c4
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.00418f39
add esp, 4
xor eax, eax
jmp 0x40c6f1
push str.Rename_sucess__n
jmp 0x40c391
push str.LSP_file_doesnt_exists__will_just_proceed_with_the_rename._n
call fcn.004131d0
add esp, 4
push str.Trying_to_rename_new_LSP_to_running_LSP_n
call fcn.004131d0
mov ecx, dword [ebp - 0x14c]
add esp, 4
cmp dword [ebp - 0x138], edi
jae 0x40c3ba
lea ecx, [ebp - 0x14c]
mov eax, dword [ebp - 0x168]
cmp dword [ebp - 0x154], edi
jae 0x40c3ce
lea eax, [ebp - 0x168]
push ecx
push eax
call esi
test eax, eax
jne 0x40c576
cmp dword [ebp - 0x138], edi
mov edi, dword [ebp - 0x14c]
jae 0x40c3ee
lea edi, [ebp - 0x14c]
cmp dword [ebp - 0x154], 0x10
mov esi, dword [ebp - 0x168]
jae 0x40c403
lea esi, [ebp - 0x168]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.Failed_to_rename_new_LSP:__s_to:__s_with_error_code:__i_n
call fcn.00413260
add esp, 0x10
cmp dword [ebp - 0x174], ebx
je 0x40c47d
push str.Trying_to_rename_LSP_back__n
call fcn.004131d0
mov ecx, dword [ebp - 0x14c]
mov edi, 0x10
add esp, 4
cmp dword [ebp - 0x138], edi
jae 0x40c447
lea ecx, [ebp - 0x14c]
mov eax, dword [ebp - 0x184]
cmp dword [ebp - 0x170], edi
jae 0x40c45b
lea eax, [ebp - 0x184]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40c482
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_rename_LSP_back_with_error_code:__i_n
call fcn.00413260
add esp, 8
jmp 0x40c482
mov edi, 0x10
cmp dword [ebp - 0x170], edi
jb 0x40c499
mov edx, dword [ebp - 0x184]
push edx
call fcn.00418f39
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
cmp dword [ebp - 0x11c], edi
jb 0x40c4c7
mov eax, dword [ebp - 0x130]
push eax
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
cmp dword [ebp - 0x138], edi
jb 0x40c4f0
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x154], edi
jb 0x40c519
mov edx, dword [ebp - 0x168]
push edx
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
cmp dword [ebp - 0x18c], edi
jb 0x40c542
mov eax, dword [ebp - 0x1a0]
push eax
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0x1a0], bl
cmp dword [ebp - 0x1c4], edi
jb 0x40c0c4
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.00418f39
add esp, 4
xor eax, eax
jmp 0x40c6f1
push str.LSP_updated_completly__its_advised_to_reboot_the_computer_now_n
call fcn.004131d0
add esp, 4
cmp dword [ebp - 0x174], ebx
je 0x40c603
cmp dword [ebp - 0x1e4], 3
jl 0x40c603
mov eax, dword [ebp - 0x184]
cmp dword [ebp - 0x170], edi
jae 0x40c5a8
lea eax, [ebp - 0x184]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40c5e1
mov esi, dword [ebp - 0x184]
cmp dword [ebp - 0x170], edi
jae 0x40c5ca
lea esi, [ebp - 0x184]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_schedule_file__s_deletion_on_next_reboot_with_error:__i_n
call fcn.00413260
add esp, 0xc
jmp 0x40c603
mov eax, dword [ebp - 0x184]
cmp dword [ebp - 0x170], edi
jae 0x40c5f5
lea eax, [ebp - 0x184]
push eax
push str.File___s__scheduled_to_be_deleted_on_next_reboot__n
call fcn.004131d0
add esp, 8
cmp dword [ebp - 0x170], edi
jb 0x40c61a
mov edx, dword [ebp - 0x184]
push edx
call fcn.00418f39
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x174], ebx
mov byte [ebp - 0x184], bl
cmp dword [ebp - 0x11c], edi
jb 0x40c648
mov eax, dword [ebp - 0x130]
push eax
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
cmp dword [ebp - 0x138], edi
jb 0x40c671
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
cmp dword [ebp - 0x154], edi
jb 0x40c69a
mov edx, dword [ebp - 0x168]
push edx
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x158], ebx
mov byte [ebp - 0x168], bl
cmp dword [ebp - 0x18c], edi
jb 0x40c6c3
mov eax, dword [ebp - 0x1a0]
push eax
call fcn.00418f39
add esp, 4
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0x1a0], bl
cmp dword [ebp - 0x1c4], edi
jb 0x40c6ec
mov ecx, dword [ebp - 0x1d8]
push ecx
call fcn.00418f39
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419ad1
mov esp, ebp
pop ebp
ret