Function at 0x402230
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
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
cmp byte [esi + 0x1ec], 0
je 0x40256a
call fcn.00408a45
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x402286
push 0x80004005
call fcn.00404d40
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], vtable.CUtlCommonPath.0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x1e4]
sub eax, 0x10
push eax
call fcn.00404c70
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x54], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x4022d1
xor ecx, ecx
jmp 0x4022e5
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4022d6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00404a50
lea eax, [ebp - 0x4c]
push str.Lang
push eax
call fcn.004059a0
add esp, 8
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x4c]
push eax
call fcn.004058e0
push ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x50]
call fcn.00405ee0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x50]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40233f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x40234e
xor ecx, ecx
jmp 0x402362
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402353
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00404a50
lea eax, [ebp - 0x4c]
push 0x58bb98
push eax
call fcn.004059a0
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 0x402397
xor ecx, ecx
jmp 0x4023af
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4023a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00404a50
lea eax, [ebp - 0x4c]
push str.SetupARP.exe
push eax
call fcn.004059a0
add esp, 8
push dword [ebp - 0x48]
call edi
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x4023de
xor ecx, ecx
jmp 0x4023f2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4023e3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00404a50
lea eax, [ebp - 0x4c]
push 0x58bbd0
push eax
call fcn.004059a0
add esp, 8
push dword [ebp - 0x48]
call edi
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x402421
xor ecx, ecx
jmp 0x402435
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402426
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00404a50
lea eax, [ebp - 0x4c]
push str.SetupSN.dll
push eax
call fcn.004059a0
add esp, 8
push dword [ebp - 0x48]
call edi
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x402464
xor ecx, ecx
jmp 0x40247f
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402470
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00404a50
lea eax, [ebp - 0x4c]
push str.SerChck.dll
push eax
call fcn.004059a0
add esp, 8
push dword [ebp - 0x48]
call edi
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x4024ae
xor ecx, ecx
jmp 0x4024c2
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4024b3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00404a50
lea eax, [ebp - 0x4c]
push str.Setup.xml
push eax
call fcn.004059a0
add esp, 8
push dword [ebp - 0x48]
call edi
mov dword [ebp - 0x44], 0
test esi, esi
jne 0x4024f1
xor ecx, ecx
jmp 0x402505
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4024f6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.00404a50
lea eax, [ebp - 0x4c]
push str.Script.dll
push eax
call fcn.004059a0
add esp, 8
push dword [ebp - 0x48]
call edi
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x402542
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 0x40256a
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.0052f13d
mov esp, ebp
pop ebp
ret