Function at 0x40ce9b
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0x2e4
mov eax, 0x45108a
call fcn.00417f91
mov ebx, ecx
push str.UpdateModule.dll
lea ecx, [ebp - 0x250]
call fcn.0040158b
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.0042c1a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 0x250]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00416cc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
push 0xf
pop esi
sub eax, 1
jne 0x40cff1
and dword [ebp - 0x238], 0
lea ecx, [ebp - 0x248]
push 0x3c
push str.e:workspace_aichat_aichat_updateupdateupdatorfunction.cpp
mov dword [ebp - 0x234], esi
mov byte [ebp - 0x248], 0
call fcn.0040610e
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
push 3
push 0x45476c
mov byte [ebp - 4], 1
mov dword [ebp - 0x21c], esi
mov byte [ebp - 0x230], 0
call fcn.0040610e
push 0x16b
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.00403218
mov esi, eax
push str.CheckFiles:
push esi
mov byte [ebp - 4], 3
call fcn.004023b9
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004023b9
add esp, 0x10
call fcn.00416cc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.00403cc7
lea ecx, [ebp - 0x230]
call fcn.00405f18
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.00405f18
push 0xf
pop esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d286
push str.update_
add ebx, 0x38
lea eax, [ebp - 0x24c]
push ebx
push eax
call fcn.00403b80
add esp, 0xc
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 4
push dword [eax - 0xc]
push eax
call fcn.00403f71
call fcn.00416cc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x40d115
and dword [ebp - 0x220], eax
lea ecx, [ebp - 0x230]
push 0x3c
push str.e:workspace_aichat_aichat_updateupdateupdatorfunction.cpp
mov dword [ebp - 0x21c], esi
mov byte [ebp - 0x230], al
call fcn.0040610e
and dword [ebp - 0x238], 0
lea ecx, [ebp - 0x248]
push 3
push 0x45476c
mov byte [ebp - 4], 5
mov dword [ebp - 0x234], esi
mov byte [ebp - 0x248], 0
call fcn.0040610e
push 0x171
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.00403218
mov esi, eax
push str.1_CheckFiles:
push esi
mov byte [ebp - 4], 7
call fcn.004023b9
push dword [ebp - 0x24c]
push esi
call fcn.00403b07
add esp, 0x10
call fcn.00416cc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.00403cc7
lea ecx, [ebp - 0x248]
call fcn.00405f18
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.00405f18
push dword [ebp - 0x24c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d263
push 0x454380
lea eax, [ebp - 0x258]
push ebx
push eax
call fcn.00403b80
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.0040ce48
add esp, 0x18
push eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 9
call fcn.0040169a
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.00402009
mov ecx, dword [ebp - 0x258]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00402009
call fcn.00416cc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x40d263
push 0xf
pop esi
push 0x3c
xor ebx, ebx
mov dword [ebp - 0x21c], esi
push str.e:workspace_aichat_aichat_updateupdateupdatorfunction.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov byte [ebp - 0x230], bl
call fcn.0040610e
push 3
push 0x45476c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], esi
mov byte [ebp - 0x248], bl
call fcn.0040610e
push 0x179
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.00403218
mov esi, eax
push str.2_CheckFiles:
push esi
mov byte [ebp - 4], 0xc
call fcn.004023b9
push dword [ebp - 0x24c]
push esi
call fcn.00403b07
add esp, 0x10
call fcn.00416cc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.00403cc7
lea ecx, [ebp - 0x248]
call fcn.00405f18
lea ecx, [ebp - 0x230]
call fcn.00405f18
push 1
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x24c]
lea ecx, [ecx - 0x10]
call fcn.00402009
mov ecx, dword [ebp - 0x250]
lea ecx, [ecx - 0x10]
call fcn.00402009
call fcn.00417f3b
ret