Function at 0x40f8a4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b53f6
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4f3bd0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [edi + 0x108]
add edi, 0xf8
lea esi, [esp + 0x30]
call fcn.004215db
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x28]
call fcn.004215db
push dword [esp + 0x34]
lea eax, [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x34]
push dword [esp + 0x34]
push eax
push edi
call fcn.00410689
push str.Setup_RebootReplaceFile_File
lea ecx, [esp + 0x20]
call fcn.004028ab
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
xor ebx, ebx
push eax
mov dword [esp + 0x68], ebx
call fcn.00411657
mov byte [esp + 0x60], 2
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40f946
call fcn.00402944
lea eax, [esp + 0x38]
call fcn.00410fac
test al, al
je 0x40f96d
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40f966
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x40fad5
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x28], eax
jle 0x40f953
push str.Name
lea ecx, [esp + 0x28]
call fcn.004028ab
mov esi, 0x4f9e18
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 3
call fcn.0040284b
mov byte [esp + 0x60], 4
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebx
jle 0x40faa6
lea ecx, [esp + 0x14]
call fcn.004025bc
push dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x40]
call fcn.00411ab0
lea eax, [esp + 0x44]
mov byte [esp + 0x60], 5
call fcn.00410f90
lea ecx, [esp + 0x44]
test al, al
jne 0x40fa9c
push ebx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00411227
push str.ExitIfCopyFail
lea ecx, [esp + 0x20]
call fcn.00411e08
push ebx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x4c]
mov byte [esp + 0x68], 6
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
call fcn.0041110d
mov byte [esp + 0x60], 5
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40fa34
call fcn.00402944
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x40fa7a
push esi
lea ecx, [esp + 0x38]
call fcn.0040284b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 7
call fcn.00401c8e
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
mov eax, edi
call fcn.0041046f
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.00402870
lea ecx, [esp + 0x44]
mov byte [esp + 0x60], 4
call fcn.004029fc
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
jl 0x40f9ae
jmp 0x40faa6
mov byte [esp + 0x60], 4
call fcn.004029fc
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402870
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x40fabf
call fcn.00402944
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40fad2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4