Function at 0x47e4e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c245f
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x4eb6b8]
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, ecx
push 0x7e
xor ebx, ebx
lea ecx, [ebp - 0x8e]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x104], esi
mov word [ebp - 0x90], ax
call fcn.004a2b10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [ebp - 0x90]
push 0x4d8f80
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xd0], 7
mov dword [ebp - 0xd4], ebx
mov word [ebp - 0xe4], ax
mov dword [ebp - 4], ebx
push 4
push str..tmp
push esi
call fcn.00413a10
cmp eax, 0xffffffff
je 0x47e629
add eax, 4
push eax
lea ecx, [ebp - 0xc8]
push ecx
xor ecx, ecx
mov edx, esi
call fcn.0046fe00
mov byte [ebp - 4], 1
lea edx, [ebp - 0x90]
push edx
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.004191b0
add esp, 0xc
mov byte [ebp - 4], 2
mov edi, eax
lea esi, [ebp - 0xe4]
call fcn.00413650
mov byte [ebp - 4], 1
mov edi, 8
cmp dword [ebp - 0x98], edi
jb 0x47e5e1
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.0049b30a
add esp, 4
mov esi, 7
xor edx, edx
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], ebx
mov word [ebp - 0xac], dx
mov byte [ebp - 4], bl
cmp dword [ebp - 0xb4], edi
jb 0x47e615
mov eax, dword [ebp - 0xc8]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xb4], esi
mov word [ebp - 0xc8], cx
jmp 0x47e6d2
push str..tmp
lea edx, [ebp - 0xc8]
push esi
push edx
call fcn.00419240
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x90]
push ecx
push eax
lea edx, [ebp - 0xac]
push edx
call fcn.004191b0
add esp, 0xc
mov byte [ebp - 4], 4
mov edi, eax
lea esi, [ebp - 0xe4]
call fcn.00413650
mov byte [ebp - 4], 3
mov esi, 8
cmp dword [ebp - 0x98], esi
jb 0x47e68a
mov eax, dword [ebp - 0xac]
push eax
call fcn.0049b30a
add esp, 4
mov edi, 7
xor ecx, ecx
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x9c], ebx
mov word [ebp - 0xac], cx
mov byte [ebp - 4], bl
cmp dword [ebp - 0xb4], esi
jb 0x47e6be
mov edx, dword [ebp - 0xc8]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [ebp - 0xb4], edi
mov edi, esi
mov word [ebp - 0xc8], ax
lea esi, [eax + 7]
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xb8], ebx
cmp dword [ebp - 0xd0], edi
jae 0x47e6ec
lea ecx, [ebp - 0xe4]
mov eax, dword [ebp - 0x104]
cmp dword [eax + 0x14], edi
jb 0x47e6f9
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x47ea48
lea ecx, [ebp - 0x1a0]
push ecx
call fcn.00410ff0
mov byte [ebp - 4], 5
lea edx, [ebp - 0xe4]
push edx
push ecx
lea eax, [ebp - 0x1a0]
push str.MoveFileEx_MOVEFILE_DELAY_UNTIL_REBOOT._strResult:
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
add esp, 8
push 0x1e
mov esi, 0xf
push str.CFileUtility::RebootRemoveFile
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
call fcn.004159b0
mov byte [ebp - 4], 6
push esi
push str.FileUtility.cpp
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
call fcn.004159b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x1a0]
push edx
call fcn.004110f0
mov byte [ebp - 4], 8
push eax
push 0x515
push 3
call fcn.004117f0
push eax
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0xc8]
call fcn.0047acf0
mov byte [ebp - 4], 7
cmp dword [ebp - 0xec], edi
jb 0x47e7e3
mov eax, dword [ebp - 0x100]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xec], 7
mov dword [ebp - 0xf0], ebx
mov word [ebp - 0x100], cx
mov byte [ebp - 4], 6
cmp dword [ebp - 0xb4], 0x10
jb 0x47e818
mov edx, dword [ebp - 0xc8]
push edx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
mov byte [ebp - 4], 5
cmp dword [ebp - 0x98], 0x10
jb 0x47e846
mov eax, dword [ebp - 0xac]
push eax
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1a0]
call fcn.004039f0
mov eax, dword [ebp - 0xe4]
cmp dword [ebp - 0xd0], edi
jae 0x47e87a
lea eax, [ebp - 0xe4]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x47ea13
lea ecx, [ebp - 0x1a0]
push ecx
call fcn.00410ff0
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [ebp - 0x1a0]
push str.MoveFileExW_Error:
push edx
call fcn.00418890
add esp, 0xc
push eax
call fcn.004102c0
push 0x1e
push str.CFileUtility::RebootRemoveFile
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
call fcn.004159b0
mov byte [ebp - 4], 0xa
push esi
push str.FileUtility.cpp
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
call fcn.004159b0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
call fcn.004110f0
mov byte [ebp - 4], 0xc
push eax
push 0x518
push ebx
call fcn.004117f0
push eax
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0xac]
call fcn.0047acf0
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0xec], edi
jb 0x47e95d
mov edx, dword [ebp - 0x100]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [ebp - 0xec], 7
mov dword [ebp - 0xf0], ebx
mov word [ebp - 0x100], ax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x98], 0x10
jb 0x47e992
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 0xac], bl
mov byte [ebp - 4], 9
cmp dword [ebp - 0xb4], 0x10
jb 0x47e9c0
mov edx, dword [ebp - 0xc8]
push edx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb8], ebx
mov byte [ebp - 0xc8], bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1a0]
call fcn.004039f0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xd0], edi
jb 0x47e9fe
mov eax, dword [ebp - 0xe4]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], cx
jmp 0x47ea75
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xd0], edi
jb 0x47ea31
mov edx, dword [ebp - 0xe4]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov word [ebp - 0xe4], ax
mov dword [ebp - 0xd0], 7
mov al, 1
jmp 0x47ea77
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xd0], edi
jb 0x47ea66
mov ecx, dword [ebp - 0xe4]
push ecx
call fcn.0049b30a
add esp, 4
xor edx, edx
mov dword [ebp - 0xd0], esi
mov word [ebp - 0xe4], dx
xor al, al
mov dword [ebp - 0xd4], ebx
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.0049b315
mov esp, ebp
pop ebp
ret