Function at 0x40f985
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b52b6
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.0041f717
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x28]
call fcn.0041f717
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.00410775
push str.Setup_RebootReplaceFile_File
lea ecx, [esp + 0x20]
call fcn.004029a8
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.004116cc
mov byte [esp + 0x60], 2
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40fa27
call fcn.00402a41
lea eax, [esp + 0x38]
call fcn.0041104c
test al, al
je 0x40fa4e
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40fa47
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x40fbb6
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x28], eax
jle 0x40fa34
push str.Name
lea ecx, [esp + 0x28]
call fcn.004029a8
mov esi, 0x4f9e00
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 3
call fcn.0040293e
mov byte [esp + 0x60], 4
cmp dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebx
jle 0x40fb87
lea ecx, [esp + 0x14]
call fcn.0040269a
push dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x40]
call fcn.00411b32
lea eax, [esp + 0x44]
mov byte [esp + 0x60], 5
call fcn.00411030
lea ecx, [esp + 0x44]
test al, al
jne 0x40fb7d
push ebx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004112c7
push str.ExitIfCopyFail
lea ecx, [esp + 0x20]
call fcn.00411e8a
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.004111ad
mov byte [esp + 0x60], 5
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40fb15
call fcn.00402a41
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x40fb5b
push esi
lea ecx, [esp + 0x38]
call fcn.0040293e
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.0041055b
mov ecx, dword [esp + 0x34]
add ecx, 0xfffffff0
call fcn.00402963
lea ecx, [esp + 0x44]
mov byte [esp + 0x60], 4
call fcn.00402af9
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x28]
jl 0x40fa8f
jmp 0x40fb87
mov byte [esp + 0x60], 4
call fcn.00402af9
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402963
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x40fba0
call fcn.00402a41
or dword [esp + 0x60], 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40fbb3
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