Function at 0x40d1b0
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449110
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
mov eax, dword [0x4668f4]
push ebx
xor eax, ebp
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], eax
lea esi, [ebx + 0x600]
mov edi, str.Server
mov ecx, 7
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
jne 0x40d213
mov dx, word [0x44d360]
mov ecx, ebx
mov word [ecx], dx
mov al, byte [0x44d362]
mov byte [ecx + 2], al
jmp 0x40d23e
cmp byte [ebx], 0
jne 0x40d23e
lea ecx, [ebp - 0x414]
push ecx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x200
push ebx
lea edx, [ebp - 0x414]
push edx
mov ecx, ebx
call fcn.0040cfc0
mov edi, str.Server
lea esi, [ebx + 0x600]
mov ecx, 7
xor eax, eax
mov dword [ebx + 0x103c], 0xfa000
repe cmpsb byte [esi], byte es:[edi]
lea esi, [ebx + 0x200]
jne 0x40d2bd
push str.RunServerLog
push ebx
push str._s_s.txt
push esi
call fcn.004217f1
push str.RunServerLog
push ebx
lea ecx, [ebx + 0x400]
push str._s_s.bak
push ecx
call fcn.004217f1
add esp, 0x20
mov ecx, esi
mov edx, 0x46c138
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40d296
push ebx
lea eax, [ebx + 0x104c]
push str._sServerMemoryLog.txt
push eax
call fcn.004217f1
push ebx
push str._sServerMemoryLog.bak
jmp 0x40d353
cmp byte [esi], 0
jne 0x40d2ef
push str.rsp1024h
push ebx
push str._s_s.txt
push esi
call fcn.004217f1
push str.rsp1024h
push ebx
lea edx, [ebx + 0x400]
push str._s_s.bak
push edx
call fcn.004217f1
add esp, 0x20
jmp 0x40d32c
push esi
push ebx
lea edi, [ebx + 0x400]
push str._s_s
push edi
call fcn.004217f1
add esp, 0x10
mov ecx, edi
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
test al, al
jne 0x40d307
lea esi, [ebx + 0x200]
push esi
lea eax, [ebx + 0x400]
push str._s.bak
push eax
call fcn.004217f1
add esp, 0xc
mov ecx, 0x46c138
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
test al, al
jne 0x40d331
push ebx
lea eax, [ebx + 0x104c]
push str._sClientMemoryLog.txt
push eax
call fcn.004217f1
push ebx
push str._sClientMemoryLog.bak
lea eax, [ebx + 0x124c]
push eax
call fcn.004217f1
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0x18
push 0x200
lea edi, [ebx + 0x144c]
push edi
push 0xffffffffffffffff
lea eax, [ebx + 0x200]
push eax
push 0
push 0xfde9
mov dword [ebp - 0x418], eax
call esi
push 0x200
lea eax, [ebx + 0x184c]
push eax
push 0xffffffffffffffff
lea ecx, [ebx + 0x400]
push ecx
push 0
push 0xfde9
call esi
push 0x200
lea edx, [ebx + 0x1c4c]
push edx
push 0xffffffffffffffff
lea eax, [ebx + 0x104c]
push eax
push 0
push 0xfde9
call esi
push 0x200
lea eax, [ebx + 0x204c]
push eax
push 0xffffffffffffffff
lea eax, [ebx + 0x124c]
push eax
push 0
push 0xfde9
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d402
push 0
lea eax, [ebx + 0x184c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x44d180
push edi
call fcn.00421e84
add esp, 8
test eax, eax
mov dword [ebx + 0x1004], eax
jne 0x40d478
mov dword [0x46bd30], 3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.0040f290
mov ecx, dword [ebp - 0x418]
add esp, 4
push eax
push esi
push ecx
push str.failed_to_create_log_file__s_in_MyLog::GetWorkingDirectory_____d
push 0x46bd38
call fcn.004217f1
add esp, 0x14
xor al, al
jmp 0x40d47a
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004205fd
mov esp, ebp
pop ebp
ret