Function at 0x40f981
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4925
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x4f2be0]
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.00410d9a
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x28]
call fcn.00410d9a
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.00410799
push str.Setup_RebootReplaceFile_File
lea ecx, [esp + 0x20]
call fcn.00402a0f
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.00411741
mov byte [esp + 0x60], 2
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40fa23
call fcn.00402aa8
lea eax, [esp + 0x38]
call fcn.004110dc
test al, al
je 0x40fa4a
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40fa43
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x40fbb2
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x28], eax
jle 0x40fa30
push str.Name
lea ecx, [esp + 0x28]
call fcn.00402a0f
mov esi, 0x4f8ce0
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 3
call fcn.004029af
mov byte [esp + 0x60], 4
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebx
jle 0x40fb83
lea ecx, [esp + 0x14]
call fcn.00402701
push dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x40]
call fcn.00411bb5
lea eax, [esp + 0x44]
mov byte [esp + 0x60], 5
call fcn.004110c0
lea ecx, [esp + 0x44]
test al, al
jne 0x40fb79
push ebx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00411357
push str.ExitIfCopyFail
lea ecx, [esp + 0x20]
call fcn.00411f1a
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.0041123d
mov byte [esp + 0x60], 5
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40fb11
call fcn.00402aa8
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x40fb57
push esi
lea ecx, [esp + 0x38]
call fcn.004029af
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 7
call fcn.00401df2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
mov eax, edi
call fcn.00410557
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.004029d4
lea ecx, [esp + 0x44]
mov byte [esp + 0x60], 4
call fcn.00402b60
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
jl 0x40fa8b
jmp 0x40fb83
mov byte [esp + 0x60], 4
call fcn.00402b60
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004029d4
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x40fb9c
call fcn.00402aa8
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40fbaf
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