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

Disassembly:
push 0xffffffffffffffff
push 0x50fb68
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
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 0x443a8e
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 0x443a32
call fcn.004ea9f7
mov eax, dword [edi + 0x2c]
add eax, ebx
mov eax, dword [eax]
push 0x51cc80
push eax
call fcn.004ec6cc
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
add esp, 8
test eax, eax
mov eax, 0x66666667
je 0x443a6c
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add ebx, 0x14
cmp esi, eax
jb 0x443a12
jmp 0x443a8e
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x443a81
call fcn.004ea9f7
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, 0x51cc98
call fcn.00418040
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 0x443bda
lea edx, [edi + 0x1c]
push edx
lea eax, [esp + 0x28]
lea ebx, [edi + 4]
push eax
call fcn.00435bd0
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, str.patch.exe
mov byte [esp + 0x44], 1
call fcn.00418040
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 0x443b40
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x443b33
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x443b33
call fcn.00404fe0
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x443b2a
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 0x443b40
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.004076e0
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 0x443b65
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 0x443b8a
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 0x443bda
push str.cannot_find_patch.exe
mov ecx, 0x548980
call fcn.004dfa90
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 0x443bd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x444141
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.00435bd0
push eax
lea edx, [esp + 0x30]
push edx
mov ebx, 0x51ccdc
mov byte [esp + 0x44], 3
call fcn.00418040
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.00442e20
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 0x443c50
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 0x443c75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x443c9a
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 0x443bc7
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 0x443d3c
xor esi, esi
jmp 0x443cc0
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 0x443ce0
call fcn.004ea9f7
mov eax, dword [edi + 0x2c]
add eax, esi
mov eax, dword [eax]
push 0x51cce0
push eax
call fcn.004ec6cc
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
add esp, 8
test eax, eax
mov eax, 0x66666667
je 0x443d1a
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
inc ebx
add ecx, edx
add esi, 0x14
cmp ebx, ecx
jb 0x443cc0
jmp 0x443d3c
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x443d2f
call fcn.004ea9f7
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 0x443ecf
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 0x443df5
xor esi, esi
jmp 0x443d70
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 0x443d90
call fcn.004ea9f7
mov eax, dword [edi + 0x2c]
add eax, esi
mov eax, dword [eax + 0x10]
push str.Update.exe
push eax
call fcn.004ec6cc
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
add esp, 8
test eax, eax
mov eax, 0x66666667
je 0x443dcb
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
inc ebx
add ecx, edx
add esi, 0x14
cmp ebx, ecx
jb 0x443d70
jmp 0x443df5
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x443de0
call fcn.004ea9f7
mov edx, dword [edi + 0x2c]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x443ecf
push str.cannot_find_dependent_global.dll__use_old_one
mov ecx, 0x548980
call fcn.004dfa90
add esp, 4
lea eax, [esp + 0x20]
push ebp
push eax
mov ebx, 0x51cd40
call fcn.00418040
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.00418040
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 0x443e68
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 0x443e8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x443f89
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, 0x548980
call fcn.004dfa90
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 0x443bc7
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
mov ebx, ebp
call fcn.00435bd0
push eax
lea eax, [esp + 0x34]
push eax
mov ebx, 0x51cdac
mov byte [esp + 0x44], 6
call fcn.00418040
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.00442e20
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 0x443f3f
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 0x443f64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x443f89
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 0x443bc7
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x51cdb0
call fcn.00418040
add esp, 8
mov esi, ebp
mov edi, eax
mov byte [esp + 0x34], 8
call fcn.00444320
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 0x443fd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x44400f
push str.copy_vccrt_files_failed
mov ecx, 0x548980
call fcn.004dfa90
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 0x443bc7
lea ecx, [esp + 0x24]
push ebp
push ecx
mov ebx, 0x51cdf0
call fcn.00418040
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.00418040
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 0x444070
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 0x444095
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4440aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.copy_zlib1.dll_to_the_dir_where_update.exe_is_failed:__d
jmp 0x443ea1
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x40]
push edx
mov ebx, str.Downloader
call fcn.00418040
add esp, 8
mov esi, ebp
mov edi, eax
mov byte [esp + 0x34], 0xa
call fcn.00444320
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 0x4440f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x444114
push str.copy_Downloader_files_failed
mov ecx, 0x548980
call fcn.004dfa90
add esp, 4
jmp 0x443eae
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 0x44413c
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