Function at 0x40f921
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4afcda
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4ed820]
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.00421296
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x28]
call fcn.00421296
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.0041072e
push str.Setup_RebootReplaceFile_File
lea ecx, [esp + 0x20]
call fcn.00402953
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.00411685
mov byte [esp + 0x60], 2
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40f9c3
call fcn.004029ec
lea eax, [esp + 0x38]
call fcn.00411005
test al, al
je 0x40f9ea
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40f9e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x40fb52
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x28], eax
jle 0x40f9d0
push str.Name
lea ecx, [esp + 0x28]
call fcn.00402953
mov esi, 0x4f39f8
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 3
call fcn.004028e9
mov byte [esp + 0x60], 4
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebx
jle 0x40fb23
lea ecx, [esp + 0x14]
call fcn.00402664
push dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x40]
call fcn.00411ade
lea eax, [esp + 0x44]
mov byte [esp + 0x60], 5
call fcn.00410fe9
lea ecx, [esp + 0x44]
test al, al
jne 0x40fb19
push ebx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00411280
push str.ExitIfCopyFail
lea ecx, [esp + 0x20]
call fcn.00411e43
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.00411166
mov byte [esp + 0x60], 5
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40fab1
call fcn.004029ec
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x40faf7
push esi
lea ecx, [esp + 0x38]
call fcn.004028e9
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 7
call fcn.00401d9d
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
mov eax, edi
call fcn.004104ec
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.0040290e
lea ecx, [esp + 0x44]
mov byte [esp + 0x60], 4
call fcn.00402aa4
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
jl 0x40fa2b
jmp 0x40fb23
mov byte [esp + 0x60], 4
call fcn.00402aa4
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040290e
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x40fb3c
call fcn.004029ec
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40fb4f
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