Function at 0x4213e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a21c
mov eax, dword fs:[0]
push eax
sub esp, 0x6ec
mov eax, dword [0x499104]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0044e2e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421470
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x38]
call fcn.00403580
mov ecx, ebx
call fcn.0041fea0
mov eax, dword [ebx + 0x38]
cmp dword [eax - 0xc], 0
je 0x4214e2
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4214e2
lea ecx, [ebp - 0x660]
call fcn.0041a030
push dword [ebx + 0x38]
lea eax, [ebp - 0x660]
mov dword [ebp - 4], 3
push eax
call fcn.0041a3f0
lea ecx, [ebp - 0x660]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a040
jmp 0x4215dd
mov dword [ebx + 0x3c], 1
call fcn.0042b330
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x4215dd
lea ecx, [ebp - 0x659]
call fcn.0041f3e0
push 0x57
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdateupdatorfunction.cpp
lea ecx, [ebp - 0x658]
mov dword [ebp - 0x648], 0
mov edi, eax
mov dword [ebp - 0x644], 0xf
mov byte [ebp - 0x658], 0
call fcn.0040cbb0
push 3
push 0x47e748
lea ecx, [ebp - 0x640]
mov dword [ebp - 4], 0
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 0xf
mov byte [ebp - 0x640], 0
call fcn.0040cbb0
push 0x27
lea eax, [ebp - 0x658]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x640]
push eax
lea ecx, [ebp - 0x6f8]
call fcn.00406520
mov esi, eax
push edi
push esi
mov byte [ebp - 4], 2
call fcn.00407340
add esp, 8
call fcn.0042b330
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x6f8]
call fcn.00409400
lea ecx, [ebp - 0x640]
call fcn.00406dc0
lea ecx, [ebp - 0x658]
mov dword [ebp - 4], 0xffffffff
call fcn.00406dc0
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0044e2e0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0044e2e0
add esp, 0x18
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00456d9f
add esp, 0xc
lea ecx, [ebp - 0x659]
call fcn.0041eea0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [ebp - 0x420]
push eax
call esi
lea ecx, [ebp - 0x659]
call fcn.0041f4c0
push eax
lea eax, [ebp - 0x628]
push eax
call esi
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00418030
add esp, 8
mov ecx, ebx
call fcn.004216b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e446
mov esp, ebp
pop ebp
ret