Function at 0x43b040
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x46ab5c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.0043b710
mov dword [ebp - 4], 0
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x24]
call fcn.00401de0
mov byte [ebp - 4], 1
push 0x456c4c
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.0040aa40
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004068d0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x44]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040a290
add esp, 0xc
mov byte [ebp - 4], 4
push 0x456c4c
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x44]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040aa40
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call fcn.00401080
lea ecx, [ebp - 0x10]
call fcn.004068d0
mov byte [ebp - 4], 8
push 0
lea ecx, [ebp - 0x1c]
call fcn.0040f280
push eax
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
test eax, eax
jne 0x43b155
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004027e0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x10
call fcn.004010c0
jmp 0x43b170
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004027e0
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 0x10
call fcn.004010c0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x2c
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.0040a290
add esp, 0xc
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004027e0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
call fcn.00401080
lea ecx, [ebp - 0x10]
call fcn.0040f280
push eax
lea edx, [ebp - 0x38]
push edx
call fcn.004098d0
add esp, 8
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x5c]
call fcn.0040f280
push eax
call fcn.00409bc0
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
call fcn.00401080
push 0
lea ecx, [ebp - 0x10]
call fcn.0040f280
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x14]
push eax
push str.KRebootConfigWritter::AddRebootBackFile_CopyFile_return:_d__errorcode:_d__relate_path:_ws
push 0x46afbc
call fcn.00420980
add esp, 0x14
cmp dword [ebp - 0x14], 0
je 0x43b2c4
lea ecx, [ebp - 0x18]
call fcn.0040f280
push eax
push str.path
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.004097f0
add esp, 8
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x64]
call fcn.0040f280
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x34
call fcn.0041e610
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3c]
call fcn.00401080
lea ecx, [ebp - 0x2c]
call fcn.0040f280
push eax
push 0x45bd3c
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004097f0
add esp, 8
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x6c]
call fcn.0040f280
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x34
call fcn.0041e610
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.00401080
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x10]
call fcn.00401080
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00401080
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00401080
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401080
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401080
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00401080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401080
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8