Function at 0x40f8fd
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b539b
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.00410d0b
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x28]
call fcn.00410d0b
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.0041070a
push str.Setup_RebootReplaceFile_File
lea ecx, [esp + 0x20]
call fcn.0040285b
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.004116b2
mov byte [esp + 0x60], 2
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40f99f
call fcn.004028f4
lea eax, [esp + 0x38]
call fcn.0041104d
test al, al
je 0x40f9c6
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40f9bf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x40fb2e
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x28], eax
jle 0x40f9ac
push str.Name
lea ecx, [esp + 0x28]
call fcn.0040285b
mov esi, 0x4f9e00
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 3
call fcn.004027fb
mov byte [esp + 0x60], 4
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebx
jle 0x40faff
lea ecx, [esp + 0x14]
call fcn.0040256c
push dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x40]
call fcn.00411b49
lea eax, [esp + 0x44]
mov byte [esp + 0x60], 5
call fcn.00411031
lea ecx, [esp + 0x44]
test al, al
jne 0x40faf5
push ebx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004112c8
push str.ExitIfCopyFail
lea ecx, [esp + 0x20]
call fcn.00411e8b
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.004111ae
mov byte [esp + 0x60], 5
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40fa8d
call fcn.004028f4
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x40fad3
push esi
lea ecx, [esp + 0x38]
call fcn.004027fb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x64], 7
call fcn.00401c3e
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
mov eax, edi
call fcn.004104c8
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.00402820
lea ecx, [esp + 0x44]
mov byte [esp + 0x60], 4
call fcn.004029ac
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
jl 0x40fa07
jmp 0x40faff
mov byte [esp + 0x60], 4
call fcn.004029ac
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402820
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x40fb18
call fcn.004028f4
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40fb2b
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