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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a026
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
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 edi, ecx
lea ecx, [ebp - 0x249]
mov dword [ebp - 0x25c], 0
call fcn.0041f880
push eax
lea ecx, [ebp - 0x258]
call fcn.00402780
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
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]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 0x258]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
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 0x4200a9
push 0x57
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdateupdatorfunction.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.0040cbb0
push 3
push 0x47e748
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040cbb0
push 0x16b
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00406520
mov esi, eax
push str.CheckFiles:
push esi
mov byte [ebp - 4], 3
call fcn.00403b90
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00403b90
add esp, 0x10
call fcn.0042b330
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f8]
call fcn.00409400
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x420050
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x420046
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420466
push edx
push ecx
call fcn.0042e19e
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4200a9
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42009f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42046b
push edx
push ecx
call fcn.0042e19e
add esp, 8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
jne 0x42042f
lea esi, [edi + 0x38]
lea ecx, [ebp - 0x249]
mov dword [ebp - 0x254], esi
call fcn.0041fc00
push eax
lea eax, [ebp - 0x250]
push esi
push eax
call fcn.00407470
add esp, 0xc
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 4
push dword [eax - 0xc]
push eax
call fcn.00409850
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 0x420211
lea ecx, [ebp - 0x249]
call fcn.0041ec00
push 0x57
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdateupdatorfunction.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov edi, eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040cbb0
push 3
push 0x47e748
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 5
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040cbb0
push 0x171
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00406520
mov esi, eax
test edi, edi
mov byte [ebp - 4], 7
mov ecx, str._null_
cmovne ecx, edi
push ecx
push esi
call fcn.00403b90
mov eax, dword [ebp - 0x250]
mov ecx, str._null_
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.00403b90
add esp, 0x10
call fcn.0042b330
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f8]
call fcn.00409400
lea ecx, [ebp - 0x248]
call fcn.00406dc0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.00406dc0
mov esi, dword [ebp - 0x254]
push dword [ebp - 0x250]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4203fd
push 0x47e3fc
lea eax, [ebp - 0x260]
push esi
push eax
call fcn.00407470
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x420250
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x42025e
call fcn.00403230
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x420470
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi]
add eax, 0x10
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x258]
mov byte [ebp - 4], 9
mov dword [ebp - 0x25c], 1
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0x254]
push ecx
push eax
call fcn.00420520
add esp, 0x14
lea eax, [ebp - 0x254]
lea ecx, [ebp - 0x250]
push eax
call fcn.004029c0
mov edx, dword [ebp - 0x254]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4202d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x260]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4202f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x4203fd
lea ecx, [ebp - 0x249]
call fcn.0041f060
push 0x57
push str.d:jenkins.jenkinsworkspacemgameultra_uninstallerupdateupdateupdatorfunction.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov edi, eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.0040cbb0
push 3
push 0x47e748
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.0040cbb0
push 0x179
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00406520
mov esi, eax
test edi, edi
mov byte [ebp - 4], 0xd
mov ecx, str._null_
cmovne ecx, edi
push ecx
push esi
call fcn.00403b90
mov eax, dword [ebp - 0x250]
mov ecx, str._null_
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.00403b90
add esp, 0x10
call fcn.0042b330
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f8]
call fcn.00409400
lea ecx, [ebp - 0x248]
call fcn.00406dc0
lea ecx, [ebp - 0x230]
call fcn.00406dc0
push 1
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x250]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42042f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x258]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x42044a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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
call fcn.0045156a
call fcn.0045156a
push 0x80004005
call fcn.00402ca0
int3