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

Disassembly:
push 0xffffffffffffffff
push 0x49ed58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
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 0x43462e
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 0x4345d2
call fcn.0047d0a2
mov eax, dword [edi + 0x2c]
add eax, ebx
mov eax, dword [eax]
push 0x4a6b34
push eax
call fcn.0047e0cc
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
add esp, 8
test eax, eax
mov eax, 0x66666667
je 0x43460c
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
add ebx, 0x14
cmp esi, eax
jb 0x4345b2
jmp 0x43462e
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x434621
call fcn.0047d0a2
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, 0x4a6b4c
call fcn.00412200
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 0x43477a
lea edx, [edi + 0x1c]
push edx
lea eax, [esp + 0x28]
lea ebx, [edi + 4]
push eax
call fcn.004264f0
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ebx, str.patch.exe
mov byte [esp + 0x44], 1
call fcn.00412200
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 0x4346e0
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4346d3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4346d3
call fcn.00404f50
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4346ca
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 0x4346e0
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.004076a0
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 0x434705
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 0x43472a
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 0x43477a
push str.cannot_find_patch.exe
mov ecx, 0x4c5908
call fcn.00472890
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 0x434773
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x434ce1
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.004264f0
push eax
lea edx, [esp + 0x30]
push edx
mov ebx, 0x4a6b90
mov byte [esp + 0x44], 3
call fcn.00412200
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.004339c0
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 0x4347f0
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 0x434815
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x43483a
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 0x434767
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 0x4348dc
xor esi, esi
jmp 0x434860
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 0x434880
call fcn.0047d0a2
mov eax, dword [edi + 0x2c]
add eax, esi
mov eax, dword [eax]
push 0x4a6b94
push eax
call fcn.0047e0cc
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
add esp, 8
test eax, eax
mov eax, 0x66666667
je 0x4348ba
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
inc ebx
add ecx, edx
add esi, 0x14
cmp ebx, ecx
jb 0x434860
jmp 0x4348dc
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4348cf
call fcn.0047d0a2
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 0x434a6f
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 0x434995
xor esi, esi
jmp 0x434910
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 0x434930
call fcn.0047d0a2
mov eax, dword [edi + 0x2c]
add eax, esi
mov eax, dword [eax + 0x10]
push str.Update.exe
push eax
call fcn.0047e0cc
mov ecx, dword [edi + 0x30]
sub ecx, dword [edi + 0x2c]
add esp, 8
test eax, eax
mov eax, 0x66666667
je 0x43496b
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
inc ebx
add ecx, edx
add esi, 0x14
cmp ebx, ecx
jb 0x434910
jmp 0x434995
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x434980
call fcn.0047d0a2
mov edx, dword [edi + 0x2c]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x434a6f
push str.cannot_find_dependent_global.dll__use_old_one
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
lea eax, [esp + 0x20]
push ebp
push eax
mov ebx, 0x4a6bf4
call fcn.00412200
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.00412200
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 0x434a08
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 0x434a2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x434b29
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, 0x4c5908
call fcn.00472890
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 0x434767
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
mov ebx, ebp
call fcn.004264f0
push eax
lea eax, [esp + 0x34]
push eax
mov ebx, 0x4a6c60
mov byte [esp + 0x44], 6
call fcn.00412200
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.004339c0
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 0x434adf
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 0x434b04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x434b29
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 0x434767
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x4a6c64
call fcn.00412200
add esp, 8
mov esi, ebp
mov edi, eax
mov byte [esp + 0x34], 8
call fcn.00434ec0
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 0x434b78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x434baf
push str.copy_vccrt_files_failed
mov ecx, 0x4c5908
call fcn.00472890
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 0x434767
lea ecx, [esp + 0x24]
push ebp
push ecx
mov ebx, 0x4a6ca4
call fcn.00412200
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.00412200
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 0x434c10
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 0x434c35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x434c4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.copy_zlib1.dll_to_the_dir_where_update.exe_is_failed:__d
jmp 0x434a41
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x40]
push edx
mov ebx, str.Downloader
call fcn.00412200
add esp, 8
mov esi, ebp
mov edi, eax
mov byte [esp + 0x34], 0xa
call fcn.00434ec0
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 0x434c99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x434cb4
push str.copy_Downloader_files_failed
mov ecx, 0x4c5908
call fcn.00472890
add esp, 4
jmp 0x434a4e
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 0x434cdc
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