Function at 0x40e160
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf6e8
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4f7458]
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, 0x4f89c8
call fcn.0042b8e0
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.00411c60
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.0040f050
push str.clientMSM
lea ecx, [ebp - 0x14]
call fcn.0040f050
mov ecx, 0x4f89c8
call fcn.00434fb0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40e261
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 0x40e21d
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 0x40e25f
mov edx, dword [ebp - 0x10]
push edx
push str.CopyToUpdateDriectory_Is_Empty_Directory__s.
mov eax, dword [ebp - 0xb0]
push eax
call fcn.004028d0
add esp, 0xc
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402470
mov eax, dword [ebp - 0x1c]
jmp 0x40e3a9
jmp 0x40e2cb
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 0x40e289
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 0x40e2cb
mov edx, dword [ebp - 0x14]
push edx
push str.CopyToUpdateDriectory_Is_Empty_Directory__s.
mov eax, dword [ebp - 0xb0]
push eax
call fcn.004028d0
add esp, 0xc
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402470
mov eax, dword [ebp - 0x20]
jmp 0x40e3a9
cmp dword [ebp - 0x18], 0
je 0x40e2dc
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xb4], ecx
jmp 0x40e2e5
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.0040f970
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.00411c60
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.0040e3c0
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.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00402470
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4