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

Disassembly:
push 0xffffffffffffffff
push 0x50f308
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
mov dword [esp + 0x1c], 0
je 0x4432be
xor ebx, ebx
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x443262
call fcn.004ea2c7
mov eax, dword [edi + 0x2c]
add eax, ebx
mov eax, dword [eax]
push 0x51bc80
push eax
call fcn.004ebf9c
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
add esp, 8
test eax, eax
mov eax, 0x66666667
je 0x44329c
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add ebx, 0x14
cmp esi, eax
jb 0x443242
jmp 0x4432be
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x4432b1
call fcn.004ea2c7
mov eax, dword [edi + 0x2c]
lea edx, [esi + esi*4]
lea ecx, [eax + edx*4]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
push eax
mov ebx, 0x51bc98
call fcn.00417ae0
add esp, 8
mov dword [esp + 0x34], 0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44340a
lea edx, [edi + 0x1c]
push edx
lea eax, [esp + 0x28]
lea ebx, [edi + 4]
push eax
call fcn.00435480
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, str.patch.exe
mov byte [esp + 0x44], 1
call fcn.00417ae0
add esp, 0x10
mov byte [esp + 0x34], 2
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x443370
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x443363
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x443363
call fcn.00404eb0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x44335a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x18], ebp
jmp 0x443370
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.00407680
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443395
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4433ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44340a
push str.cannot_find_patch.exe
mov ecx, 0x546980
call fcn.004df340
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x443403
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x443971
lea eax, [edi + 0x1c]
push eax
lea ecx, [esp + 0x24]
lea ebp, [edi + 4]
push ecx
mov ebx, ebp
mov dword [esp + 0x30], eax
call fcn.00435480
push eax
lea edx, [esp + 0x30]
push edx
mov ebx, 0x51bcdc
mov byte [esp + 0x44], 3
call fcn.00417ae0
add esp, 0x10
mov byte [esp + 0x34], 4
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push ecx
mov ecx, eax
mov edx, ebp
call fcn.00442650
test eax, eax
mov byte [esp + 0x34], 3
mov eax, dword [esp + 0x24]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x443480
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4434a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4434ca
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4433f7
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
xor ebx, ebx
add ecx, edx
je 0x44356c
xor esi, esi
jmp 0x4434f0
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x443510
call fcn.004ea2c7
mov eax, dword [edi + 0x2c]
add eax, esi
mov eax, dword [eax]
push 0x51bce0
push eax
call fcn.004ebf9c
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
add esp, 8
test eax, eax
mov eax, 0x66666667
je 0x44354a
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
inc ebx
add ecx, edx
add esi, 0x14
cmp ebx, ecx
jb 0x4434f0
jmp 0x44356c
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x44355f
call fcn.004ea2c7
mov edx, dword [edi + 0x2c]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
jne 0x4436ff
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
xor ebx, ebx
add ecx, edx
je 0x443625
xor esi, esi
jmp 0x4435a0
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4435c0
call fcn.004ea2c7
mov eax, dword [edi + 0x2c]
add eax, esi
mov eax, dword [eax + 0x10]
push str.Update.exe
push eax
call fcn.004ebf9c
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
add esp, 8
test eax, eax
mov eax, 0x66666667
je 0x4435fb
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
inc ebx
add ecx, edx
add esi, 0x14
cmp ebx, ecx
jb 0x4435a0
jmp 0x443625
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x443610
call fcn.004ea2c7
mov edx, dword [edi + 0x2c]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4436ff
push str.cannot_find_dependent_global.dll__use_old_one
mov ecx, 0x546980
call fcn.004df340
add esp, 4
lea eax, [esp + 0x20]
push ebp
push eax
mov ebx, 0x51bd40
call fcn.00417ae0
mov esi, eax
mov byte [esp + 0x3c], 5
mov ecx, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x30]
push edx
mov ebx, str.global.dll
call fcn.00417ae0
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x10
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov eax, dword [esp + 0x24]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443698
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4436bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4437b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.copy_global.dll_to_the_dir_where_update.exe_is_failed:__d
mov ecx, 0x546980
call fcn.004df340
add esp, 8
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4433f7
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
mov ebx, ebp
call fcn.00435480
push eax
lea eax, [esp + 0x34]
push eax
mov ebx, 0x51bdac
mov byte [esp + 0x44], 6
call fcn.00417ae0
add esp, 0x10
mov byte [esp + 0x34], 7
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push ecx
mov ecx, eax
mov edx, ebp
call fcn.00442650
test eax, eax
mov byte [esp + 0x34], 6
mov eax, dword [esp + 0x28]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44376f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443794
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4437b9
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4433f7
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x51bdb0
call fcn.00417ae0
add esp, 8
mov esi, ebp
mov edi, eax
mov byte [esp + 0x34], 8
call fcn.00443b50
test eax, eax
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x28]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443808
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x44383f
push str.copy_vccrt_files_failed
mov ecx, 0x546980
call fcn.004df340
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4433f7
lea ecx, [esp + 0x24]
push ebp
push ecx
mov ebx, 0x51bdf0
call fcn.00417ae0
mov esi, eax
mov byte [esp + 0x3c], 9
mov edx, dword [esp + 0x44]
push edx
lea eax, [esp + 0x34]
push eax
mov ebx, str.zlib1.dll
call fcn.00417ae0
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x10
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov eax, dword [esp + 0x28]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4438a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4438c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4438da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.copy_zlib1.dll_to_the_dir_where_update.exe_is_failed:__d
jmp 0x4436d1
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x40]
push edx
mov ebx, str.Downloader
call fcn.00417ae0
add esp, 8
mov esi, ebp
mov edi, eax
mov byte [esp + 0x34], 0xa
call fcn.00443b50
test eax, eax
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x3c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443929
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x443944
push str.copy_Downloader_files_failed
mov ecx, 0x546980
call fcn.004df340
add esp, 4
jmp 0x4436de
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44396c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4