Function at 0x40d2f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b757
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x5ad1b0]
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 ebx, ecx
mov dword [ebp - 0x224], ebx
call fcn.004177a3
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x40d342
push 0x80004005
call fcn.00413c00
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - method.CUtlCommonPath.virtual_0], vtable.CUtlCommonPath.0
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], 0
push str.CGSLauncher.log
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.00410d30
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.00415610
push dword [ebp - 0x220]
lea eax, [ebp - 0x268]
push eax
call fcn.00414d60
lea esi, [ebx + 0x10c]
add esp, 8
mov ebx, dword [ebp - 0x264]
test ebx, ebx
jne 0x40d3b3
xor ecx, ecx
jmp 0x40d3cf
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x40d3c0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d3c0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.00410be0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004177a3
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40d3fc
push 0x80004005
call fcn.00413c00
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push ecx
mov ecx, esp
mov byte [ebp - 4], 2
push str._A___B__d___Y_____I:_M__p
call fcn.00410d30
lea ecx, [ebp - 0x22c]
call fcn.00415f60
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x21c]
push str._Logging_Started__s_
push eax
call fcn.00410710
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x22c]
add esp, 0x10
add edx, 0xfffffff0
mov eax, edi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40d468
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push str._n_nRunning____s
push eax
call fcn.00410670
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push dword [esi]
call fcn.00414a40
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 4
call fcn.00414ec0
push ecx
lea ecx, [ebp - 0x2a4]
call fcn.00414fb0
mov ecx, dword [ebp - 0x224]
add ecx, 0x110
push 0
push 0x3041
push dword [esi]
mov eax, dword [ecx]
mov dword [ebp - 0x228], ecx
call dword [eax + 0x24]
mov esi, dword [ebp - 0x21c]
test eax, eax
jle 0x40d4fa
mov ecx, dword [ebp - 0x228]
mov edx, esi
call fcn.00416090
test al, al
jne 0x40d50b
mov ecx, dword [ebp - 0x224]
mov eax, dword [0x55c3c4]
mov dword [ecx + 0x114], eax
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x2a0]
add edx, 0xfffffff0
mov dword [ebp - method.CUtlCommonPath.virtual_0], vtable.CUtlCommonPath.0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d538
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d555
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d578
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40d596
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.00531343
mov esp, ebp
pop ebp
ret