Function at 0x4097c0
Capabilities:
Delete file
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x45c040]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
xor eax, eax
mov dword [esp + 8], 0
mov bh, dl
mov bl, cl
push esi
push edi
mov word [esp + 0x20], ax
cmp dword [0x45f650], eax
je 0x409830
mov esi, dword [0x45eb64]
test esi, esi
je 0x409830
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call dword [0x442244]
call esi
mov ecx, dword [ebp + 4]
add esp, 4
mov esi, dword [0x45f650]
mov edi, eax
mov dword [esp + 0x10], edi
push dword [esp + 0x20]
push edi
push ecx
mov ecx, esi
call dword [0x442244]
call esi
add esp, 0xc
cmp bl, 1
jne 0x409b58
mov ecx, dword [0x45f640]
nop
test ecx, ecx
je 0x409af3
cmp dword [0x45f62c], 0
je 0x409af3
movzx eax, word [0x45f8cc]
mov esi, dword [0x45edc4]
push 0
push eax
push dword [0x45eb60]
push ecx
mov ecx, esi
call dword [0x442244]
call esi
movzx eax, word [0x45f8cc]
add esp, 0x10
mov esi, dword [0x45edc4]
mov ecx, esi
push 0
push eax
push dword [0x45eb60]
push dword [0x45f62c]
call dword [0x442244]
call esi
mov edi, dword [0x45f640]
add esp, 0x10
mov eax, dword [edi]
push dword [0x45f410]
push dword [0x45eb7c]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
cmp al, bl
jne 0x409aec
mov edi, dword [0x45f62c]
mov eax, dword ds:[edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
cmp al, bl
jne 0x409a74
mov edi, dword [0x45f62c]
mov eax, dword ds:[edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
cmp eax, 4
jne 0x409a74
mov edi, dword [0x45f62c]
xor bl, bl
mov eax, dword [edi]
mov esi, dword [eax + 0x170]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
cmp al, 1
jne 0x4099a6
nop dword [eax]
nop word [eax + eax]
mov edi, dword [0x45f62c]
mov eax, dword [edi]
mov esi, dword [eax + 0x218]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
test eax, eax
je 0x4099a6
nop
test bl, bl
jne 0x40997a
push 0x30
push str.SteamLite
push str.SteamLite_cant_shutdown_while_a_game_is_running_
push 0
mov bl, 1
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [0x45f62c]
mov eax, dword [edi]
mov esi, dword [eax + 0x170]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
cmp al, 1
je 0x409940
mov edi, dword [0x45eafc]
push 0
mov eax, dword [edi]
mov esi, dword [eax + 0x9c]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
mov edi, dword [0x45eafc]
mov eax, dword [edi]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
nop dword [eax]
test al, al
jne 0x4099c2
push str._nShutting_down_SteamLite_____LogOff_n_n
call fcn.00403aa0
mov edi, dword [0x45f62c]
add esp, 4
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
mov edi, dword [0x45f62c]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
cmp al, 1
jne 0x409a88
nop word [eax + eax]
mov edi, dword [0x45f62c]
mov eax, dword ds:[edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
cmp eax, 4
jne 0x409a88
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [0x45f62c]
mov eax, dword [edi]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
cmp al, 1
je 0x409a30
jmp 0x409a88
push str._nShutting_down_SteamLite_____Not_Logged_On__n_n
mov ecx, 0xc
call fcn.00414e80
add esp, 4
mov edi, dword [0x45f640]
push dword [0x45f410]
push dword [0x45eb7c]
mov eax, dword [edi]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
mov edi, dword [0x45f640]
push dword [0x45eb7c]
mov eax, dword ds:[edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
mov edi, dword [0x45f640]
mov eax, dword ds:[edi]
mov esi, dword [eax + 0xc8]
mov ecx, esi
call dword [0x442244]
mov ecx, edi
call esi
jmp 0x409b08
push str._nShutting_down_SteamLite_____User_or_pipe_is_invalid__n_n
jmp 0x409af8
push str._nShutting_down_SteamLite_____No_interfaces__n_n
mov ecx, 0xc
call fcn.00414e80
add esp, 4
mov dword [0x45f640], 0
mov dword [0x45f62c], 0
mov dword [0x45f414], 0
mov dword [0x45eafc], 0
mov dword [0x45eb68], 0
mov dword [0x45f6a8], 0
mov dword [0x45edd8], 0
mov dword [0x45f694], 0
push str.configloginusers.vdf
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.appcache_appinfo.vdf
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.appcachepackageinfo.vdf
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.configDialogConfig.vdf
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.config_filterlist.vdf
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, str.SoftwareValveSteamUsers
call fcn.00408f40
push 0x44ab7c
mov edx, str.AutoLoginUser
mov ecx, str.SoftwareValveSteam
call fcn.00408260
add esp, 4
mov edx, str.AutoLoginUser_steamchina
mov ecx, str.SoftwareValveSteam
push 0x44ab7c
call fcn.00408260
add esp, 4
mov edx, str.AutoLoginUser_Unknown
mov ecx, str.SoftwareValveSteam
push 0x44ab7c
call fcn.00408260
add esp, 4
mov edx, str.LastGameNameUsed
mov ecx, str.SoftwareValveSteam
push 0x44ab7c
call fcn.00408260
add esp, 4
mov edx, str.PseudoUUID
mov ecx, str.SoftwareValveSteam
push 0x44ab7c
call fcn.00408260
add esp, 4
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push eax
push 0x20006
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409c75
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409c99
push 4
lea eax, [esp + 0x20]
push eax
push 4
push 0
push str.RememberPassword
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
push eax
push 0x20006
push 0
push str.SoftwareValveSteam
push 0x80000001
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409cfc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409d26
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.RememberPassword_steamchina
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword ds:[esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
push eax
push 0x20006
push 0
push str.SoftwareValveSteamActiveProcess
push 0x80000001
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409d8a
lea eax, ds:[esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareValveSteamActiveProcess
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409db0
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.ActiveUser
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, ds:[esp + 0x14]
mov dword [esp + 0x18], 0
push eax
push 0x20006
push 0
push str.SoftwareValveSteamActiveProcess
push 0x80000001
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409e15
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareValveSteamActiveProcess
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409e39
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push 0x450078
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, str.appcache_stats
nop
call fcn.00409560
mov ecx, str.appcachehttpcache
call fcn.00409560
mov ecx, str.config_avatarcache
call fcn.00409560
mov ecx, str.logs
nop
call fcn.00409560
mov ecx, str.dumps
call fcn.00409560
mov ecx, str.htmlcache
call fcn.00409560
nop dword [eax]
test bh, bh
jne 0x409fb6
lea eax, ds:[esp + 0xf]
mov byte [esp + 0xf], bh
push eax
push ecx
mov edx, 0x45eba0
mov ecx, str.localconfig.vdf
call fcn.004090a0
add esp, 8
cmp byte [esp + 0xf], 1
je 0x409f19
nop
cmp byte [0x45e8ed], 1
jne 0x409f19
mov ecx, 0x45edf0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409ec1
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x409f19
push 0x45edf0
nop word [eax + eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
mov byte [0x45e8ed], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0xf]
mov byte [esp + 0xf], 0
push eax
push ecx
mov edx, 0x45eba0
mov ecx, str.localconfig.vdf
call fcn.004090a0
add esp, 8
cmp byte [esp + 0xf], 1
jne 0x409eb0
lea eax, [esp + 0xf]
mov byte [0x45e8ed], 0
push eax
push ecx
mov edx, 0x45eba0
mov byte [esp + 0x17], 0
mov ecx, str.coplay_
call fcn.004090a0
add esp, 8
cmp byte [esp + 0xf], 1
je 0x409faf
cmp byte [0x45e8ed], 1
jne 0x409faf
mov eax, 0x45edf0
lea edx, [eax + 2]
mov cx, word ds:[eax]
add eax, 2
test cx, cx
jne 0x409f55
sub eax, edx
sar eax, 1
cmp eax, 1
jbe 0x409faf
push 0x45edf0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
mov byte [0x45e8ed], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, ds:[esp + 0xf]
mov byte [esp + 0xf], 0
push eax
push ecx
mov edx, 0x45eba0
mov ecx, str.coplay_
call fcn.004090a0
add esp, 8
cmp byte [esp + 0xf], 1
jne 0x409f44
mov byte [0x45e8ed], 0
cmp dword [0x45edc4], 0
je 0x40a005
cmp dword [0x45f400], 0
je 0x40a005
mov eax, dword ds:[ebp + 4]
mov edi, dword [esp + 0x10]
mov esi, dword [0x45edc4]
mov ecx, esi
push 1
push dword [esp + 0x24]
push edi
push eax
call dword [0x442244]
call esi
mov esi, dword [0x45f400]
add esp, 0x10
mov ecx, esi
push dword [esp + 0x20]
push edi
call dword [0x442244]
nop
call esi
add esp, 8
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret