Function at 0x40d990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c78c8
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x50545c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x506c08
call fcn.00432f50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
sub ecx, 0x10
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.00412ee0
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
push str.client_64MSM
lea ecx, [ebp - 0x10]
call fcn.0040e8a0
push str.clientMSM
lea ecx, [ebp - 0x14]
call fcn.0040e8a0
mov ecx, 0x506c08
call fcn.0043cbb0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40da91
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40da4d
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x40da8f
mov edx, dword [ebp - 0x10]
push edx
push str.CopyToUpdateDriectory_Is_Empty_Directory__s.
mov eax, dword [ebp - 0xb0]
push eax
call fcn.00401a70
add esp, 0xc
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004129d0
mov eax, dword [ebp - 0x1c]
jmp 0x40dbd9
jmp 0x40dafb
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40dab9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x40dafb
mov edx, dword [ebp - 0x14]
push edx
push str.CopyToUpdateDriectory_Is_Empty_Directory__s.
mov eax, dword [ebp - 0xb0]
push eax
call fcn.00401a70
add esp, 0xc
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004129d0
mov eax, dword [ebp - 0x20]
jmp 0x40dbd9
cmp dword [ebp - 0x18], 0
je 0x40db0c
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xb4], ecx
jmp 0x40db15
lea edx, [ebp - 0x14]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x30], eax
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.MSM1
mov edx, dword [ebp - 0xb0]
push edx
push ecx
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
sub eax, 0x10
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.00412ee0
add esp, 4
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
add edx, 0x10
mov eax, dword [ebp - 0xa4]
mov dword [eax], edx
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xb0]
call fcn.0040dbf0
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xc4]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004129d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004129d0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4