Function at 0x45c1d0
Capabilities:
Check if file exists
Copy file
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591b61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2cc
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
push ebx
push esi
push edi
test eax, eax
je 0x45c1fe
mov byte [eax], 0
mov esi, dword [ebp + 8]
push ecx
mov eax, esp
mov dword [eax], esi
call fcn.00470b10
add esp, 4
test al, al
jne 0x45c225
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push ecx
mov eax, esp
push ecx
lea ecx, [ebp - 0x90]
mov dword [eax], 0
mov eax, esp
mov dword [eax], esi
call fcn.00470340
push 0
push 0
push 3
push 0
push 1
push closesocket
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0
call fcn.00471a00
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x45c29b
push 0x34
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.0056ce40
add esp, 0xc
lea eax, [ebp - 0xd8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x45c2bd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
lea ecx, [ebp - 0x90]
call fcn.004707c0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
or ecx, dword [ebp - 0xb4]
cmp eax, dword [ebp + 0x1c]
jb 0x45c2d7
ja 0x45c294
cmp ecx, dword [ebp + 0x18]
ja 0x45c294
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push str._s.tmp
push eax
call fcn.0046a980
add esp, 0xc
cmp byte [ebp - 0x19], 0
mov byte [ebp - 4], 1
jge 0x45c303
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x45c306
mov ecx, 0x594544
jmp 0x45c306
lea ecx, [ebp - 0x28]
push ecx
mov eax, esp
push ecx
lea ecx, [ebp - 0x4c]
mov dword [eax], 0
call fcn.00470340
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00471a00
mov esi, eax
xor eax, eax
push eax
push eax
push eax
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x45c3d1
push 0
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x1c], 0
push eax
push 0x200
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x10], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45c3ce
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x45c42c
add dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
push 0
push ecx
push eax
lea eax, [ebp - 0x2d8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45c402
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp - 0x10]
jne 0x45c402
push 0
lea eax, [ebp + 0x1c]
push eax
push 0x200
lea eax, [ebp - 0x2d8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45c382
push esi
call ebx
push edi
call ebx
xor bl, bl
lea ecx, [ebp - 0x4c]
call fcn.004707c0
cmp byte [ebp - 0x19], 0
mov byte [ebp - 4], 0x10
jge 0x45c29d
call fcn.0047f4e0
push 0
push dword [ebp - 0x28]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
jmp 0x45c29d
push str.SteamService:_Failed_to_copy_to_service_DLL_destination_n
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x84]
push eax
push 1
push 1
push 3
push 4
push 0
push 0
call fcn.0045e970
add esp, 0x28
jmp 0x45c3ce
push esi
call ebx
cmp dword [ebp - 0x14], 0
je 0x45c3d1
push edi
call ebx
lea ecx, [ebp - 0xa4]
call fcn.0045aac0
push str.f17b6178030a3149805d92b9ce0f681b1d37f7085a66e7f60acf31bc892f2f86
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
call fcn.00447790
xor edi, edi
lea ecx, [ebp - 0x84]
push edi
push edi
push edi
xor esi, esi
call fcn.0046b5f0
cmp byte [ebp - 0x19], 0
mov byte [ebp - 4], 4
jge 0x45c481
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x45c484
mov eax, 0x594544
jmp 0x45c484
lea eax, [ebp - 0x28]
push 0
push 1
lea ecx, [ebp - 0x84]
push ecx
push eax
call fcn.00471bd0
add esp, 0x10
test al, al
je 0x45c527
mov dword [ebp + 0x1c], 0
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 5
call fcn.0045b0c0
push 0
lea ecx, [ebp - 0x84]
push ecx
push str.SteamService
mov ecx, eax
call fcn.0046e860
test al, al
je 0x45c517
push 0
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp + 0x1c]
call fcn.0045b0c0
push eax
call fcn.00456be0
add esp, 0xc
test al, al
jne 0x45c4f7
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x250]
test al, al
je 0x45c517
lea ecx, [ebp + 0x1c]
call fcn.0045b0c0
push 0
push 0
push ecx
mov ecx, esp
mov dword [ecx], str.version
mov ecx, eax
call fcn.0045f140
mov esi, eax
mov edi, edx
mov ecx, dword [ebp + 0x1c]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x45c527
call fcn.0046fe60
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.0046a620
mov eax, esi
or eax, edi
jne 0x45c586
cmp byte [ebp - 0x19], al
jge 0x45c568
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x45c56b
mov eax, 0x594544
push eax
call fcn.00481910
add esp, 4
lea ecx, [ebp - 0xa4]
xor bl, bl
call fcn.00446fa0
jmp 0x45c3d6
lea eax, [ebp - 0x28]
push eax
call fcn.00481910
add esp, 4
lea ecx, [ebp - 0xa4]
xor bl, bl
call fcn.00446fa0
jmp 0x45c3d6
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, esp
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [eax], ecx
call fcn.00470b10
add esp, 4
test al, al
je 0x45c668
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x84]
call fcn.0046b5f0
push ebx
push 1
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 7
push eax
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, esp
mov dword [eax], ecx
call fcn.00471bd0
add esp, 0x10
test al, al
je 0x45c659
mov dword [ebp + 0x1c], ebx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 8
call fcn.0045b0c0
push ebx
lea ecx, [ebp - 0x84]
push ecx
push str.SteamService
mov ecx, eax
call fcn.0046e860
test al, al
je 0x45c649
push ebx
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp + 0x1c]
call fcn.0045b0c0
push eax
call fcn.00456be0
add esp, 0xc
test al, al
jne 0x45c628
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x250]
test al, al
je 0x45c649
lea ecx, [ebp + 0x1c]
call fcn.0045b0c0
push 0
push 0
push ecx
mov ecx, esp
mov dword [ecx], str.version
mov ecx, eax
call fcn.0045f140
mov ebx, eax
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp + 0x1c]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x45c659
call fcn.0046fe60
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.0046a620
cmp edi, dword [ebp - 0x10]
ja 0x45c6a3
jb 0x45c673
cmp esi, ebx
ja 0x45c6a3
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x250]
test al, al
jne 0x45c6a3
lea ecx, [ebp - 0x4c]
call fcn.00471a00
push eax
call fcn.0045eaf0
add esp, 4
lea ecx, [ebp - 0xa4]
mov bl, 1
call fcn.00446fa0
jmp 0x45c3d6
push dword [ebp + 0x10]
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
call fcn.0046b2a0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x45c6c5
cmp byte [eax], 0
jne 0x45c6d3
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
call fcn.0046b2a0
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x594544
mov ecx, esi
cmovne ecx, eax
push ecx
mov eax, esp
push ecx
lea ecx, [ebp - 0x40]
mov dword [eax], 0
call fcn.00470340
mov eax, dword [ebp + 8]
test eax, eax
mov byte [ebp - 4], 0xb
cmovne esi, eax
lea eax, [ebp - 0x5c]
push esi
push str._s.old
push eax
call fcn.0046a980
add esp, 0xc
cmp byte [ebp - 0x4d], 0
mov byte [ebp - 4], 0xc
jge 0x45c727
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
jne 0x45c72a
mov ecx, 0x594544
jmp 0x45c72a
lea ecx, [ebp - 0x5c]
push ecx
mov eax, esp
push ecx
lea ecx, [ebp - 0x34]
mov dword [eax], 0
call fcn.00470340
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.00471a00
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00471a00
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45c779
test al, 3
je 0x45c779
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
test al, al
je 0x45c783
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x40]
call fcn.00471a00
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.00471a00
push 1
push esi
push eax
call fcn.0045eb40
add esp, 0xc
test al, al
jne 0x45c7c7
lea ecx, [ebp - 0x40]
call fcn.00471a00
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.00471a00
push 1
push esi
push eax
call fcn.0045eb40
add esp, 0xc
xor bl, bl
jmp 0x45c7e4
lea ecx, [ebp - 0x34]
call fcn.00471a00
push eax
call fcn.0045eaf0
mov eax, dword [ebp + 0x14]
add esp, 4
test eax, eax
je 0x45c7e2
mov byte [eax], 1
mov bl, 1
lea ecx, [ebp - 0x34]
call fcn.004707c0
lea ecx, [ebp - 0x5c]
call fcn.0045afe0
lea ecx, [ebp - 0x40]
call fcn.004707c0
mov byte [ebp - 4], 0xf
call fcn.0047f4e0
push 0
push dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
lea ecx, [ebp - 0xa4]
call fcn.00446fa0
jmp 0x45c3d6