Function at 0x4016d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550f78
mov eax, dword fs:[0]
push eax
sub esp, 0x48
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
cmp byte [esi + 0x1ec], 0
je 0x401a0a
call fcn.00407e43
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x401726
push 0x80004005
call fcn.004041c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], vtable.CUtlCommonPath.0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x1e4]
sub eax, 0x10
push eax
call fcn.004040f0
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x54], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x401771
xor ecx, ecx
jmp 0x401785
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401776
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00403ed0
lea eax, [ebp - 0x4c]
push str.Lang
push eax
call fcn.00404d90
add esp, 8
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00404cd0
push ecx
mov byte [ebp - 4], 2
push dword [ebp - 0x50]
lea ecx, [ebp - 0x4c]
call fcn.004052d0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4017df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x4017ee
xor ecx, ecx
jmp 0x401802
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4017f3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00403ed0
lea eax, [ebp - 0x4c]
push 0x585b00
push eax
call fcn.00404d90
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
push dword [ebp - 0x48]
call edi
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x401837
xor ecx, ecx
jmp 0x40184f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401840
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00403ed0
lea eax, [ebp - 0x4c]
push str.SetupARP.exe
push eax
call fcn.00404d90
add esp, 8
push dword [ebp - 0x48]
call edi
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x40187e
xor ecx, ecx
jmp 0x401892
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401883
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00403ed0
lea eax, [ebp - 0x4c]
push str.Setup.exe
push eax
call fcn.00404d90
add esp, 8
push dword [ebp - 0x48]
call edi
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x4018c1
xor ecx, ecx
jmp 0x4018d5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4018c6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00403ed0
lea eax, [ebp - 0x4c]
push str.SetupSN.dll
push eax
call fcn.00404d90
add esp, 8
push dword [ebp - 0x48]
call edi
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x401904
xor ecx, ecx
jmp 0x40191f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401910
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00403ed0
lea eax, [ebp - 0x4c]
push str.SerChck.dll
push eax
call fcn.00404d90
add esp, 8
push dword [ebp - 0x48]
call edi
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x40194e
xor ecx, ecx
jmp 0x401962
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401953
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00403ed0
lea eax, [ebp - 0x4c]
push str.Setup.xml
push eax
call fcn.00404d90
add esp, 8
push dword [ebp - 0x48]
call edi
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x401991
xor ecx, ecx
jmp 0x4019a5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401996
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00403ed0
lea eax, [ebp - 0x4c]
push str.Script.dll
push eax
call fcn.00404d90
add esp, 8
push dword [ebp - 0x48]
call edi
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4019e2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
mov dword [ebp - 0x4c], vtable.CUtlCommonPath.0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x401a0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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