Function at 0x4128e0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58bef7
mov eax, dword fs:[0]
push eax
sub esp, 0x678
mov eax, dword [0x5f4274]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x654], esi
push str._ZUpdate__Move_patch_files.
call fcn.00402060
mov eax, dword [esi + 4]
add esp, 4
mov byte [ebp - 0x641], 0
mov esi, dword [eax]
cmp esi, eax
je 0x413151
nop word [eax + eax]
mov eax, dword [esi + 8]
cmp byte [eax + 0x120], 0
jne 0x413140
cmp byte [eax + 0x121], 0
je 0x413140
push 0x100
lea ecx, [ebp - 0x110]
add eax, 4
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathSearchAndQualifyA]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [esi + 8]
add eax, 4
push eax
call fcn.00412120
mov eax, dword [ebp - 0x654]
add eax, 0xc5c
push eax
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00411ee0
add esp, 0x14
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x640]
add eax, 0x108
mov dword [ebp - 4], 0
push eax
call fcn.00411010
cmp dword [ebp - 0x614], 0x10
lea ecx, [ebp - 0x628]
lea eax, [ebp - 0x640]
cmovae ecx, dword [ebp - 0x628]
cmp dword [ebp - 0x62c], 0x10
push ecx
cmovae eax, dword [ebp - 0x640]
push eax
call fcn.0056aea2
mov ecx, dword [ebp - 0x62c]
add esp, 8
mov edi, eax
cmp ecx, 0x10
jb 0x412a37
mov edx, dword [ebp - 0x640]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412a2d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413183
push ecx
push edx
call fcn.0055f649
add esp, 8
lea eax, [ebp - 0x210]
push eax
test edi, edi
je 0x412b23
lea eax, [ebp - 0x65c]
push eax
call fcn.00411fe0
push dword [eax]
lea eax, [ebp - 0x610]
push str._ZUpdate__ERROR_:_Invalid_MD5__s
push eax
call fcn.00402080
mov edx, dword [ebp - 0x65c]
add esp, 0x14
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412a86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x610]
push eax
call fcn.00402060
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x660]
push eax
call fcn.00411fe0
mov dword [ebp - 0x648], eax
push str.STR_138
mov byte [ebp - 4], 1
call fcn.00402870
push str.STR_137
mov edi, eax
call fcn.00402870
mov ecx, dword [ebp - 0x648]
push edi
push dword [ecx]
push eax
lea eax, [ebp - 0x610]
push str._s_:__s_n______Tip___s_n
push eax
call fcn.00402080
mov edx, dword [ebp - 0x660]
add esp, 0x28
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412b05
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x64c]
lea eax, [ebp - 0x610]
push eax
call fcn.00404490
mov byte [ebp - 0x641], 1
jmp 0x4130e8
lea eax, [ebp - 0x664]
push eax
call fcn.00411fe0
push dword [eax]
call fcn.00412870
mov edx, dword [ebp - 0x664]
add esp, 0xc
mov byte [ebp - 0x642], al
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x412b63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x642]
test al, al
je 0x412bcf
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x668]
push eax
call fcn.00411fe0
push dword [eax]
lea eax, [ebp - 0x610]
push str._ZUpdate__This_file_is_must_restart_:__s
push eax
call fcn.00402080
mov edx, dword [ebp - 0x668]
add esp, 0x14
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412bae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x610]
push eax
call fcn.00402060
mov eax, dword [ebp - 0x654]
add esp, 4
mov byte [eax + 0xc60], 1
jmp 0x4130e8
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.00411fe0
mov edi, eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x66c]
push eax
call fcn.00411fe0
push dword [edi]
push dword [eax]
lea eax, [ebp - 0x610]
push str._ZUpdate__Copy_patch_file_from__s__to___s
push eax
call fcn.00402080
mov edx, dword [ebp - 0x66c]
add esp, 0x20
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412c31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x670]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412c53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x610]
push eax
call fcn.00402060
lea eax, [ebp - 0x110]
push eax
call fcn.00413a30
add esp, 8
test al, al
jne 0x412d52
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x674]
push eax
call fcn.00411fe0
push dword [eax]
lea eax, [ebp - 0x610]
push str._ZUpdate__WARNNING_:_This_file_cannot_made_path_:__s
push eax
call fcn.00402080
mov edx, dword [ebp - 0x674]
add esp, 0x14
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412cbd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x610]
push eax
call fcn.00402060
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x678]
push eax
call fcn.00411fe0
mov dword [ebp - 0x648], eax
push str.STR_140
mov byte [ebp - 4], 3
call fcn.00402870
push str.STR_139
mov edi, eax
call fcn.00402870
mov ecx, dword [ebp - 0x648]
push edi
push dword [ecx]
push eax
lea eax, [ebp - 0x610]
push str._s_:__s_n______Tip___s_n
push eax
call fcn.00402080
mov edx, dword [ebp - 0x678]
add esp, 0x28
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412d3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x64c]
lea eax, [ebp - 0x610]
push eax
mov ecx, edi
call fcn.00404490
jmp 0x412d58
mov edi, dword [ebp - 0x64c]
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x412e96
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 0x650]
push ecx
push 0x400
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x67c]
push eax
call fcn.00411fe0
push dword [ebp - 0x650]
push dword [eax]
lea eax, [ebp - 0x610]
push str._ZUpdate__ERROR_:_File_copy_error_:__s_:__s
push eax
call fcn.00402080
mov edx, dword [ebp - 0x67c]
add esp, 0x18
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412de7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x610]
push eax
call fcn.00402060
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x680]
push eax
call fcn.00411fe0
mov dword [ebp - 0x648], eax
push str.STR_125
mov byte [ebp - 4], 4
call fcn.00402870
push str.STR_141
mov edi, eax
call fcn.00402870
mov ecx, dword [ebp - 0x648]
push edi
push dword [ebp - 0x650]
push dword [ecx]
push eax
lea eax, [ebp - 0x610]
push str._s_:__s_:__s_n______Tip___s_n
push eax
call fcn.00402080
mov edx, dword [ebp - 0x680]
add esp, 0x2c
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x412e6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x64c]
lea eax, [ebp - 0x610]
push eax
call fcn.00404490
push dword [ebp - 0x650]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 0x641], 1
jmp 0x4130e8
push edi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.00411ee0
mov edi, eax
add esp, 0xc
lea eax, [ebp - 0x628]
cmp eax, edi
je 0x412f36
mov ecx, dword [ebp - 0x614]
cmp ecx, 0x10
jb 0x412ef3
mov edx, dword [ebp - 0x628]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412ee9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413183
push ecx
push edx
call fcn.0055f649
add esp, 8
mov dword [ebp - 0x618], 0
mov dword [ebp - 0x614], 0xf
mov byte [ebp - 0x628], 0
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x628], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x618], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [ebp - 0x62c]
cmp ecx, 0x10
jb 0x412f70
mov edx, dword [ebp - 0x640]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412f66
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413183
push ecx
push edx
call fcn.0055f649
add esp, 8
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x640]
add eax, 0x108
push eax
call fcn.00411010
cmp dword [ebp - 0x614], 0x10
lea ecx, [ebp - 0x628]
lea eax, [ebp - 0x640]
cmovae ecx, dword [ebp - 0x628]
cmp dword [ebp - 0x62c], 0x10
push ecx
cmovae eax, dword [ebp - 0x640]
push eax
call fcn.0056aea2
mov ecx, dword [ebp - 0x62c]
add esp, 8
mov edi, eax
cmp ecx, 0x10
jb 0x412ff2
mov edx, dword [ebp - 0x640]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412fe8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413183
push ecx
push edx
call fcn.0055f649
add esp, 8
test edi, edi
je 0x4130db
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.00411fe0
push dword [eax]
lea eax, [ebp - 0x610]
push str._ZUpdate__ERROR_:_MD5_error__s
push eax
call fcn.00402080
mov edx, dword [ebp - 0x658]
add esp, 0x14
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413041
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x610]
push eax
call fcn.00402060
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x684]
push eax
call fcn.00411fe0
mov dword [ebp - 0x648], eax
push str.STR_125
mov byte [ebp - 4], 5
call fcn.00402870
push str.STR_142
mov edi, eax
call fcn.00402870
mov ecx, dword [ebp - 0x648]
push edi
push dword [ecx]
push eax
lea eax, [ebp - 0x610]
push str._s_:__s_n______Tip___s_n
push eax
call fcn.00402080
mov edx, dword [ebp - 0x684]
add esp, 0x28
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4130c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x64c]
lea eax, [ebp - 0x610]
push eax
call fcn.00404490
mov byte [ebp - 0x641], 1
jmp 0x4130e8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x614]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x413125
mov edx, dword [ebp - 0x628]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41311b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413183
push ecx
push edx
call fcn.0055f649
add esp, 8
mov byte [ebp - 0x628], 0
mov dword [ebp - 0x614], 0xf
mov dword [ebp - 0x618], 0
mov eax, dword [ebp - 0x654]
mov esi, dword [esi]
cmp esi, dword [eax + 4]
jne 0x412940
push str._ZUpdate__Move_patch_files_successfully_complete.
call fcn.00402060
add esp, 4
cmp byte [ebp - 0x641], 0
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f63b
mov esp, ebp
pop ebp
ret
call fcn.0056a062
int3