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

Disassembly:
push 0x2e4
mov eax, 0x461f7a
call fcn.0041b2e2
mov ebx, ecx
push str.UpdateModule.dll
lea ecx, [ebp - 0x250]
call fcn.004027d9
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.004399d0
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.004180e0
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 0x40e3c4
and dword [ebp - 0x238], 0
lea ecx, [ebp - 0x248]
push 0x57
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdateupdatorfunction.cpp
mov dword [ebp - 0x234], esi
mov byte [ebp - 0x248], 0
call fcn.0040742d
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
push 3
push 0x466808
mov byte [ebp - 4], 1
mov dword [ebp - 0x21c], esi
mov byte [ebp - 0x230], 0
call fcn.0040742d
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.004044c3
mov esi, eax
push str.CheckFiles:
push esi
mov byte [ebp - 4], 3
call fcn.00403664
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00403664
add esp, 0x10
call fcn.004180e0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.00404f88
lea ecx, [ebp - 0x230]
call fcn.00407237
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.00407237
push 0xf
pop esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e659
push str.update_
add ebx, 0x38
lea eax, [ebp - 0x24c]
push ebx
push eax
call fcn.00404e41
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.00405232
call fcn.004180e0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x40e4e8
and dword [ebp - 0x220], eax
lea ecx, [ebp - 0x230]
push 0x57
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdateupdatorfunction.cpp
mov dword [ebp - 0x21c], esi
mov byte [ebp - 0x230], al
call fcn.0040742d
and dword [ebp - 0x238], 0
lea ecx, [ebp - 0x248]
push 3
push 0x466808
mov byte [ebp - 4], 5
mov dword [ebp - 0x234], esi
mov byte [ebp - 0x248], 0
call fcn.0040742d
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.004044c3
mov esi, eax
push str.1_CheckFiles:
push esi
mov byte [ebp - 4], 7
call fcn.00403664
push dword [ebp - 0x24c]
push esi
call fcn.00404dc8
add esp, 0x10
call fcn.004180e0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.00404f88
lea ecx, [ebp - 0x248]
call fcn.00407237
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.00407237
push dword [ebp - 0x24c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e636
push 0x4663fc
lea eax, [ebp - 0x258]
push ebx
push eax
call fcn.00404e41
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.0040e21b
add esp, 0x18
push eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 9
call fcn.004028e8
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.00403258
mov ecx, dword [ebp - 0x258]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00403258
call fcn.004180e0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x40e636
push 0xf
pop esi
push 0x57
xor ebx, ebx
mov dword [ebp - 0x21c], esi
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdateupdatorfunction.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov byte [ebp - 0x230], bl
call fcn.0040742d
push 3
push 0x466808
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.0040742d
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.004044c3
mov esi, eax
push str.2_CheckFiles:
push esi
mov byte [ebp - 4], 0xc
call fcn.00403664
push dword [ebp - 0x24c]
push esi
call fcn.00404dc8
add esp, 0x10
call fcn.004180e0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f0]
call fcn.00404f88
lea ecx, [ebp - 0x248]
call fcn.00407237
lea ecx, [ebp - 0x230]
call fcn.00407237
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.00403258
mov ecx, dword [ebp - 0x250]
lea ecx, [ecx - 0x10]
call fcn.00403258
call fcn.0041b28c
ret