Function at 0x406180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6f98
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x50545c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc0], ecx
push str.CopyToUpdateDriectory_Is_start
call fcn.0042fb40
add esp, 4
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 - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.00412ee0
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
push str.client_64
lea ecx, [ebp - 0x10]
call fcn.0040e8a0
push 0x4d2eec
lea ecx, [ebp - 0x14]
call fcn.0040e8a0
mov ecx, 0x506c08
call fcn.0043cbb0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x406287
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40624a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x406285
mov edx, dword [ebp - 0x10]
push edx
push str.CopyToUpdateDriectory_Is_Empty_Directory__s.
call fcn.0042fb40
add esp, 8
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 0x40641f
jmp 0x4062f0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4062b5
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x4062f0
mov ecx, dword [ebp - 0x14]
push ecx
push str.CopyToUpdateDriectory_Is_Empty_Directory__s.
call fcn.0042fb40
add esp, 8
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 0x40641f
cmp dword [ebp - 0x18], 0
je 0x406301
lea edx, [ebp - 0x10]
mov dword [ebp - 0xc4], edx
jmp 0x40630a
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00405b90
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x406330
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc8], eax
jmp 0x406339
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x34], edx
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ecx]
sub edx, 0x10
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
push eax
call fcn.00412ee0
add esp, 4
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
add ecx, 0x10
mov edx, dword [ebp - 0x98]
mov dword [edx], ecx
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
sub eax, 0x10
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00412ee0
add esp, 4
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
add edx, 0x10
mov eax, dword [ebp - 0xb4]
mov dword [eax], edx
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xd0], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xc0]
call fcn.004076d0
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0x28], 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 - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret