Function at 0x402f80
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547c20
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5ac1b8]
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
push 0x58bbd0
push dword [esi + 0x1e4]
lea ebx, [esi + 0x1e4]
push dword [esi + 0x1e8]
mov dword [ebp - 0x14], ebx
call fcn.00403900
test al, al
jne 0x402fda
xor al, al
jmp 0x40331d
push 0x58bb98
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00403900
test al, al
je 0x402fd3
push str.Script.dll
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00403900
test al, al
je 0x402fd3
push 0x58bd1c
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00403900
push str.SerChck.dll
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00403900
push str.SerChckv2.dll
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00403900
push str.SetupSN.dll
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00403900
push str.tBar.dll
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00403900
push str.tBar7.dll
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00403900
push str.Setup.xml
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00403900
push str.MSICrlPCU_s.DLL
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00403900
push str.MSICrlPCU.DLL
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00403900
push str.PCUDataIntl.DLL
push dword [ebx]
push dword [esi + 0x1e8]
call fcn.00403900
push dword [esi + 0x1e8]
lea ecx, [ebp - 0x7c]
call fcn.00405790
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 0
push str.PCUNLR.dll
push eax
call fcn.004059a0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.00413cbc
push 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push dword [ebp - 0x78]
call fcn.00413f09
or edi, 0xffffffff
test eax, eax
je 0x403214
call fcn.00408a45
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403120
push 0x80004005
call fcn.00404d40
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
xor bl, bl
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
call fcn.004140b1
test eax, eax
movzx ebx, bl
mov eax, 1
lea ecx, [ebp - 0x40]
cmove ebx, eax
mov eax, dword [ebp - 0x40]
push 0x10
call dword [eax + 0x38]
test eax, eax
jne 0x4031e6
lea ecx, [ebp - 0x40]
call fcn.00414441
test eax, eax
jne 0x4031e6
push esi
lea ecx, [ebp - 0x7c]
call fcn.00405bf0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x40]
call fcn.00414165
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x7c]
push eax
call fcn.004059a0
mov byte [ebp - 4], 2
add esp, 8
mov edx, dword [ebp - 0x18]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4031b1
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.004141b2
push 0
push dword [ebp - 0x78]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x20]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4031e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x403136
mov byte [ebp - 4], 1
mov ecx, edi
mov esi, dword [ebp - 0x24]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40320e
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.00408a45
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x403230
push 0x80004005
call fcn.00404d40
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.00408a45
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40325d
push 0x80004005
call fcn.00404d40
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x18]
push dword [esi + 0x1e8]
push str._sLang
push eax
call fcn.00404540
push dword [ebx]
lea eax, [ebp - 0x14]
push str._sLang
push eax
call fcn.00404540
mov esi, dword [ebp - 0x14]
add esp, 0x14
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push esi
push edi
call fcn.00403340
test al, al
mov byte [ebp - 4], 4
lea edx, [esi - 0x10]
setne bl
lea eax, [edx + 0xc]
or esi, 0xffffffff
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4032ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, esi
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4032e7
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.00413e6d
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 0x40331b
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.0052f13d
mov esp, ebp
pop ebp
ret