Function at 0x405fa0
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x47668c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x49afa0]
mov dword [esp + 0x21c], eax
mov al, byte [0x49c580]
test al, al
jne 0x40631b
push ebp
push esi
push str.region
lea ecx, [esp + 0xc]
call fcn.00401cc0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
mov ecx, 0x49c5b0
mov dword [esp + 0x238], ebp
call fcn.00402020
mov ecx, dword [eax]
lea edx, [eax + 4]
push edx
mov byte [esp + 0x234], 1
call fcn.004136a0
mov eax, dword [eax]
push eax
call fcn.0044a6ad
mov esi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
add esp, 4
mov byte [esp + 0x230], 0
lea ecx, [eax + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406048
push eax
call fcn.00416ce0
add esp, 4
mov eax, dword [esp + 8]
add eax, 0xfffffff4
mov dword [esp + 0x20], ebp
mov dword [esp + 0x230], 0xffffffff
lea ecx, [eax + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406076
push eax
call fcn.00416ce0
add esp, 4
cmp esi, 5
je 0x406096
cmp esi, 6
je 0x406096
cmp esi, 7
je 0x406096
cmp esi, 0xf
je 0x40608f
cmp esi, 0x10
jne 0x4060a3
push str.SteamRegionOverrideSteamRegionChinaCNC
jmp 0x40609b
push str.SteamRegionOverrideSteamRegionChinaCT
call fcn.004632bb
add esp, 4
mov eax, dword [str.UpdateDLLWrapper.dll]
push eax
call fcn.00405980
add esp, 4
test eax, eax
jne 0x4060ca
push 0xffffffffffffffff
push 0x10
push 0xa7
call fcn.0046d784
xor al, al
jmp 0x4062c8
call dword [0x49c574]
cmp eax, ebp
jne 0x4060ee
push 0xffffffffffffffff
push 0x10
push 0xa8
call fcn.0046d784
call fcn.004059d0
xor al, al
jmp 0x4062c8
push str.SteamGameFileDownload001
call dword [0x49c578]
add esp, 4
cmp eax, ebp
mov dword [0x49c57c], eax
jne 0x40611f
push 0xffffffffffffffff
push 0x10
push 0xa9
call fcn.0046d784
call fcn.004059d0
xor al, al
jmp 0x4062c8
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
push ebx
push edi
call esi
mov ecx, dword [0x49c57c]
mov edx, dword [ecx]
push 0x2d53
mov edi, eax
call dword [edx]
mov byte [esp + 0x17], al
call esi
mov ebx, eax
sub ebx, edi
push ebx
call fcn.00405a00
push ebp
call fcn.0044a328
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], edx
call fcn.0044a11a
add esp, 0xc
cmp eax, ebp
je 0x406171
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
jmp 0x406179
mov dword [esp + 0x10], 0xffffffff
lea edx, [esp + 0x1c]
push edx
call fcn.0044a11a
add esp, 4
cmp eax, ebp
je 0x406193
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
jmp 0x40619b
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x1c]
push ecx
call fcn.0044a11a
add esp, 4
cmp eax, ebp
je 0x4061b1
mov ebp, dword [eax + 8]
jmp 0x4061b4
or ebp, 0xffffffff
lea edx, [esp + 0x1c]
push edx
call fcn.0044a11a
add esp, 4
test eax, eax
je 0x4061ca
mov edi, dword [eax + 0xc]
jmp 0x4061cc
xor edi, edi
lea eax, [esp + 0x1c]
push eax
call fcn.0044a11a
add esp, 4
test eax, eax
je 0x4061e3
mov esi, dword [eax + 0x10]
inc esi
jmp 0x4061e5
xor esi, esi
lea ecx, [esp + 0x1c]
push ecx
call fcn.0044a11a
add esp, 4
test eax, eax
je 0x406200
mov eax, dword [eax + 0x14]
add eax, 0x76c
jmp 0x406202
xor eax, eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push edx
push ecx
push ebp
push edi
push esi
push eax
lea edx, [esp + 0x44]
push str.ClientRegistry__d__d__d__d__d__d.blob
push edx
call fcn.0044a00f
mov al, byte [esp + 0x37]
add esp, 0x20
test al, al
jne 0x4062eb
lea ecx, [esp + 0x10]
call fcn.00401b10
mov ecx, dword [0x49c57c]
mov eax, dword [ecx]
mov dword [esp + 0x238], 2
call dword [eax + 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402f80
mov ecx, dword [0x49c57c]
mov edx, dword [ecx]
mov byte [esp + 0x238], 3
call dword [edx + 0xc]
push eax
lea eax, [esp + 0x14]
push 0xac
push eax
call fcn.00402080
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0x10
push ecx
call fcn.0046d762
call fcn.004059d0
call fcn.00405a60
push 0
lea edx, [esp + 0x30]
push edx
push str.ClientRegistry.blob
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str.ClientRegistry.blob
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
call fcn.004017e0
lea ecx, [esp + 0x10]
call fcn.004017e0
xor al, al
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x21c]
call fcn.004497f7
add esp, 0x22c
ret
cmp ebx, 0x4e20
jbe 0x406310
push 0
lea eax, [esp + 0x30]
push eax
push str.ClientRegistry.blob
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str.ClientRegistry.blob
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [0x49c580], 1
mov al, 1
jmp 0x4062c6
mov al, 1
jmp 0x4062ca