Function at 0x402420
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5aa170]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], esi
lea ebx, [esi + 0x1e4]
push str.Setup.exe
push dword [ebx]
mov dword [ebp - 0x14], ebx
push dword [esi + 0x1e8]
call fcn.00402d90
test al, al
jne 0x402476
xor al, al
jmp 0x4027ab
push 0x585b00
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00402d90
test al, al
je 0x40246f
push str.Script.dll
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00402d90
test al, al
je 0x40246f
push 0x585c84
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00402d90
push str.SerChck.dll
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00402d90
push str.SerChckv2.dll
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00402d90
push str.SetupSN.dll
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00402d90
push str.tBar.dll
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00402d90
push str.Setup.xml
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00402d90
push str.MSICrlPCU_s.DLL
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00402d90
push str.MSICrlPCU.DLL
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00402d90
push str.PCUDataIntl.DLL
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00402d90
push dword [esi + 0x1e8]
lea ecx, [ebp - 0x7c]
call fcn.00404b80
lea eax, [ebp - 0x7c]
push str.PCUNLR.dll
push eax
mov dword [ebp - 4], 0
call fcn.00404d90
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.004131af
push 0
mov byte [ebp - 4], 1
push dword [ebp - 0x78]
lea ecx, [ebp - 0x40]
call fcn.004133f6
or edi, 0xffffffff
test eax, eax
je 0x4026a2
call fcn.00407e43
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4025aa
push 0x80004005
call fcn.004041c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x14]
xor bl, bl
lea ecx, [ebp - 0x40]
call fcn.0041359c
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
mov eax, dword [ebp - 0x40]
push 0x10
lea ecx, [ebp - 0x40]
call dword [eax + 0x38]
test eax, eax
jne 0x402674
lea ecx, [ebp - 0x40]
call fcn.00413924
test eax, eax
jne 0x402674
push esi
lea ecx, [ebp - 0x7c]
call fcn.00404fe0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x40]
call fcn.0041364e
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x7c]
push eax
call fcn.00404d90
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
add esp, 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40263f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
call fcn.0041369b
push 0
push dword [ebp - 0x78]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402674
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4025c0
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x24]
add esi, 0xfffffff0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40269c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
call fcn.00407e43
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4026be
push 0x80004005
call fcn.004041c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
call fcn.00407e43
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4026eb
push 0x80004005
call fcn.004041c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
push dword [esi + 0x1e8]
lea eax, [ebp - 0x18]
push str._sLang
push eax
call fcn.004039d0
push dword [ebx]
lea eax, [ebp - 0x14]
push str._sLang
push eax
call fcn.004039d0
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
push esi
push edi
call fcn.004027d0
test al, al
lea edx, [esi - 0x10]
setne bl
or esi, 0xffffffff
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402758
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402775
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0041335a
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x78]
add edi, 0xfffffff0
mov dword [ebp - 0x7c], vtable.CUtlCommonPath.0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4027a9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00529711
mov esp, ebp
pop ebp
ret