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

Disassembly:
push 0xffffffffffffffff
push 0x428809
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x435280]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435280]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0040fd03
push 0xf
mov dword [esp + 0x1c], eax
xor eax, eax
pop esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], eax
mov byte [esp + 0x94], al
mov dword [esp + 0x1d8], eax
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], eax
mov byte [esp + 0xac], al
push edi
lea ecx, [esp + 0x80]
mov byte [esp + 0x1dc], 1
call fcn.004047b1
lea eax, [esp + 0x94]
mov byte [esp + 0x1d8], 2
push eax
lea eax, [esp + 0xb0]
mov cl, 0x5c
push eax
lea edx, [esp + 0x84]
call fcn.00410672
pop ecx
pop ecx
mov bl, al
mov byte [esp + 0x1d8], 1
push 0
neg bl
lea ecx, [esp + 0x80]
push 1
sbb bl, bl
call fcn.004048e6
inc bl
je 0x40b18c
push edi
call fcn.00403cb8
pop ecx
push eax
push edi
lea ecx, [esp + 0x9c]
call fcn.00404980
push 0x104
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor ebx, ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
lea eax, [esp + 0xc4]
mov byte [esp + 0x1d8], 3
push eax
call fcn.00403cb8
pop ecx
push eax
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x54]
call fcn.00404980
push 0x5c
lea ecx, [esp + 0x50]
call fcn.00409fc1
or ebp, 0xffffffff
lea eax, [esp + 0x94]
push ebp
push ebx
push eax
lea ecx, [esp + 0x58]
call fcn.0040a13a
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
push ebp
push ebx
lea eax, [esp + 0x54]
mov byte [esp + 0x1e0], 4
push eax
lea ecx, [esp + 0x40]
call fcn.00404854
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00411efc
pop ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov byte [esp + 0x1d8], 5
push ebp
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
call fcn.00404854
push 0x2e
lea ecx, [esp + 0x68]
call fcn.00409fc1
lea ecx, [esp + 0x7c]
call fcn.0040afa3
push ebp
push ebx
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x1e4], 6
call fcn.0040a13a
push ebx
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x1e0], 5
call fcn.004048e6
lea ecx, [esp + 0x64]
call fcn.0040af7e
test eax, eax
jne 0x40b23b
push ebp
push ebx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x58]
call fcn.00404854
cmp dword [esp + 0x60], 0x10
lea eax, [esp + 0x4c]
cmovae eax, dword [esp + 0x4c]
push eax
push str.Trying_to_copy_LSP_to:__s_n
call fcn.00401d4f
add esp, 8
lea eax, [esp + 0x4c]
cmp dword [esp + 0x60], 0x10
cmovae eax, dword [esp + 0x4c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40b309
cmp dword [esp + 0x60], 0x10
lea esi, [esp + 0x4c]
cmovae esi, dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
push str.Failed_to_copy_LSP:__s_to:__s_with_error_code:__i_n
call fcn.00401d4f
add esp, 0x10
mov esi, ebx
jmp 0x40b533
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
push 0x10
pop edi
mov byte [esp + 0x1d8], 7
lea eax, [esp + 0x34]
cmp dword [esp + 0x48], edi
lea ecx, [esp + 0x7c]
cmovae eax, dword [esp + 0x34]
push eax
call fcn.004047b1
lea ecx, [esp + 0x7c]
call fcn.0040af7e
push ebx
push 1
lea ecx, [esp + 0x84]
mov esi, eax
call fcn.004048e6
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
test esi, esi
je 0x40b433
mov esi, str..old.
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x70]
call fcn.00404854
push esi
call fcn.00403cb8
pop ecx
push eax
push esi
lea ecx, [esp + 0x6c]
call fcn.0040a1da
lea ecx, [esp + 0x7c]
call fcn.0040afa3
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x1e4], 8
call fcn.0040a13a
push ebx
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x1e0], 7
call fcn.004048e6
lea ecx, [esp + 0x64]
call fcn.0040af7e
test eax, eax
jne 0x40b364
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x28]
call fcn.00404854
cmp dword [esp + 0x30], edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x34]
cmovae ecx, dword [esp + 0x1c]
cmp dword [esp + 0x48], edi
push ecx
cmovae eax, dword [esp + 0x38]
push eax
call ebp
test eax, eax
jne 0x40b433
cmp dword [esp + 0x30], 0x10
lea edi, [esp + 0x1c]
lea esi, [esp + 0x34]
cmovae edi, dword [esp + 0x1c]
cmp dword [esp + 0x48], 0x10
cmovae esi, dword [esp + 0x34]
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.00401d4f
add esp, 0x10
jmp 0x40b4b8
cmp dword [esp + 0x48], edi
lea ecx, [esp + 0x34]
lea eax, [esp + 0x4c]
cmovae ecx, dword [esp + 0x34]
cmp dword [esp + 0x60], edi
push ecx
cmovae eax, dword [esp + 0x50]
push eax
call ebp
test eax, eax
jne 0x40b4bc
cmp dword [esp + 0x48], 0x10
lea edi, [esp + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x4c]
cmovae edi, dword [esp + 0x34]
cmp dword [esp + 0x60], 0x10
cmovae esi, dword [esp + 0x4c]
call ebx
push eax
push edi
push esi
push str.Failed_to_rename_new_LSP:__s_to:__s_with_error_code:__i_n
call fcn.00401d4f
add esp, 0x10
cmp dword [esp + 0x2c], 0
je 0x40b4b6
cmp dword [esp + 0x48], 0x10
lea ecx, [esp + 0x34]
lea eax, [esp + 0x1c]
cmovae ecx, dword [esp + 0x34]
cmp dword [esp + 0x30], 0x10
push ecx
cmovae eax, dword [esp + 0x20]
push eax
call ebp
test eax, eax
jne 0x40b4b6
call ebx
xor ebx, ebx
mov esi, ebx
jmp 0x40b527
cmp dword [esp + 0x2c], 0
je 0x40b524
cmp dword [esp + 0x18], 3
jl 0x40b524
cmp dword [esp + 0x30], edi
lea eax, [esp + 0x1c]
push 4
cmovae eax, dword [esp + 0x20]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40b509
cmp dword [esp + 0x30], edi
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
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.00401d4f
add esp, 0xc
jmp 0x40b524
cmp dword [esp + 0x30], edi
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push str.File___s__scheduled_to_be_deleted_on_next_reboot__n
call fcn.00401d4f
add esp, 8
xor esi, esi
inc esi
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.004048e6
push ebx
push 1
lea ecx, [esp + 0x6c]
call fcn.004048e6
push ebx
push 1
lea ecx, [esp + 0x3c]
call fcn.004048e6
push ebx
push 1
lea ecx, [esp + 0x54]
call fcn.004048e6
push ebx
push 1
lea ecx, [esp + 0xb4]
call fcn.004048e6
push ebx
push 1
lea ecx, [esp + 0x9c]
call fcn.004048e6
mov eax, esi
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.00410875
add esp, 0x1c8
ret