Function at 0x4121c0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55f4cd
mov eax, dword fs:[0]
push eax
sub esp, 0x788
mov eax, dword [0x5c7ed0]
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 esi, ecx
mov dword [ebp - 0x62c], esi
push str._ZUpdate__Move_patch_files.
mov dword [ebp - 0x63c], 0
call fcn.00403d10
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x630]
add esi, 4
add esp, 4
xor bh, bh
push esi
push dword [eax]
call fcn.004024f0
push esi
push dword [esi]
lea ecx, [ebp - 0x638]
call fcn.004024f0
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x630]
call fcn.00411050
test al, al
jne 0x412919
mov esi, dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x630]
mov eax, dword [ecx + 8]
mov al, byte [eax + 0x20c]
test al, al
jne 0x4128e3
mov eax, dword [ecx + 8]
mov al, byte [eax + 0x20d]
test al, al
je 0x4128e3
push 0x100
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ecx + 8]
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathSearchAndQualifyA]
mov eax, dword [ebp - 0x630]
lea ecx, [ebp - 0x210]
push ecx
mov eax, dword [eax + 8]
add eax, 4
push eax
call fcn.00411d10
mov edi, dword [ebp - 0x62c]
lea eax, [ebp - 0x210]
add edi, 0xc5c
push edi
push eax
call fcn.00411b40
add esp, 0x10
lea ecx, [ebp - 0x6fc]
mov esi, eax
push 1
push 2
call fcn.004104c0
push esi
lea ecx, [ebp - 0x6fc]
mov dword [ebp - 4], 0
call fcn.00410f10
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x6fc]
call fcn.00415340
mov ecx, dword [ebp - 0x630]
mov ecx, dword [ecx + 8]
add ecx, 0x10c
cmp dword [eax + 0x14], 0x10
jb 0x412314
mov eax, dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x412334
test dl, dl
je 0x412330
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x412334
add eax, 2
add ecx, 2
test dl, dl
jne 0x412314
xor eax, eax
jmp 0x412339
sbb eax, eax
or eax, 1
test eax, eax
lea ecx, [ebp - 0x628]
push 0
push 1
setne bl
call fcn.00403120
lea eax, [ebp - 0x210]
push eax
test bl, bl
je 0x412429
lea eax, [ebp - 0x648]
push eax
call fcn.00411c10
push dword [eax]
lea eax, [ebp - 0x610]
push str._ZUpdate__ERROR_:_Invalid_CRC__s
push eax
call fcn.0053be46
mov ecx, dword [ebp - 0x648]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.00402990
lea eax, [ebp - 0x610]
push eax
call fcn.00403d10
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x660]
push eax
call fcn.00411c10
mov edi, eax
push str.STR_138
mov byte [ebp - 4], 1
call fcn.004029b0
push str.STR_137
mov esi, eax
call fcn.004029b0
push esi
push dword [edi]
push eax
lea eax, [ebp - 0x610]
push str._s_:__s_n______Tip___s_n
push eax
call fcn.0053be46
mov ecx, dword [ebp - 0x660]
add esp, 0x28
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00402990
lea ecx, [ebp - 0x610]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412400
sub ecx, edx
lea eax, [ebp - 0x610]
push ecx
mov ecx, dword [ebp - 0x62c]
push eax
lea ecx, [ecx + 0xc5c]
call fcn.00406320
mov bh, 1
jmp 0x4128b2
call fcn.00412180
add esp, 4
test al, al
je 0x41248a
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.00411c10
push dword [eax]
lea eax, [ebp - 0x610]
push str._ZUpdate__This_file_is_must_restart_:__s
push eax
call fcn.0053be46
mov ecx, dword [ebp - 0x644]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.00402990
lea eax, [ebp - 0x610]
push eax
call fcn.00403d10
mov eax, dword [ebp - 0x62c]
mov byte [eax + 0xc60], 1
jmp 0x4128af
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x664]
push eax
call fcn.00411c10
mov esi, eax
lea eax, [ebp - 0x210]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x65c]
push eax
call fcn.00411c10
push dword [esi]
push dword [eax]
lea eax, [ebp - 0x610]
push str._ZUpdate__Copy_patch_file_from__s__to___s
push eax
call fcn.0053be46
mov ecx, dword [ebp - 0x65c]
add esp, 0x20
lea ecx, [ecx - 0x10]
call fcn.00402990
mov ecx, dword [ebp - 0x664]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00402990
lea eax, [ebp - 0x610]
push eax
call fcn.00403d10
lea eax, [ebp - 0x110]
push eax
call fcn.00403b80
add esp, 8
test al, al
jne 0x4125da
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x650]
push eax
call fcn.00411c10
push dword [eax]
lea eax, [ebp - 0x610]
push str._ZUpdate__WARNNING_:_This_file_cannot_made_path_:__s
push eax
call fcn.0053be46
mov ecx, dword [ebp - 0x650]
add esp, 0x14
lea ecx, [ecx - 0x10]
call fcn.00402990
lea eax, [ebp - 0x610]
push eax
call fcn.00403d10
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x640]
push eax
call fcn.00411c10
mov edi, eax
push str.STR_140
mov byte [ebp - 4], 3
call fcn.004029b0
push str.STR_139
mov esi, eax
call fcn.004029b0
push esi
push dword [edi]
push eax
lea eax, [ebp - 0x610]
push str._s_:__s_n______Tip___s_n
push eax
call fcn.0053be46
mov ecx, dword [ebp - 0x640]
add esp, 0x28
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00402990
lea ecx, [ebp - 0x610]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4125b6
mov edi, dword [ebp - 0x62c]
lea eax, [ebp - 0x610]
sub ecx, edx
add edi, 0xc5c
push ecx
push eax
mov ecx, edi
call fcn.00406320
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 0x412705
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 0x634]
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 - 0x64c]
push eax
call fcn.00411c10
push dword [ebp - 0x634]
push dword [eax]
lea eax, [ebp - 0x610]
push str._ZUpdate__ERROR_:_File_copy_error_:__s_:__s
push eax
call fcn.0053be46
mov ecx, dword [ebp - 0x64c]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.00402990
lea eax, [ebp - 0x610]
push eax
call fcn.00403d10
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x654]
push eax
call fcn.00411c10
mov edi, eax
push str.STR_125
mov byte [ebp - 4], 4
call fcn.004029b0
push str.STR_141
mov esi, eax
call fcn.004029b0
push esi
push dword [ebp - 0x634]
push dword [edi]
push eax
lea eax, [ebp - 0x610]
push str._s_:__s_:__s_n______Tip___s_n
push eax
call fcn.0053be46
mov ecx, dword [ebp - 0x654]
add esp, 0x2c
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00402990
lea ecx, [ebp - 0x610]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4126d0
sub ecx, edx
lea eax, [ebp - 0x610]
push ecx
mov ecx, dword [ebp - 0x62c]
push eax
lea ecx, [ecx + 0xc5c]
call fcn.00406320
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov bh, 1
jmp 0x4128b2
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00411b40
add esp, 8
lea ecx, [ebp - 0x794]
mov esi, eax
push 1
push 2
call fcn.004104c0
push esi
lea ecx, [ebp - 0x794]
mov byte [ebp - 4], 5
call fcn.00410f10
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x794]
call fcn.00415340
mov ecx, dword [ebp - 0x630]
mov ecx, dword [ecx + 8]
add ecx, 0x10c
cmp dword [eax + 0x14], 0x10
jb 0x412760
mov eax, dword [eax]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x412780
test dl, dl
je 0x41277c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x412780
add eax, 2
add ecx, 2
test dl, dl
jne 0x412760
xor eax, eax
jmp 0x412785
sbb eax, eax
or eax, 1
test eax, eax
lea ecx, [ebp - 0x628]
push 0
push 1
setne bl
call fcn.00403120
test bl, bl
je 0x41287d
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x63c]
push eax
call fcn.00411c10
mov ecx, dword [ebp - 0x630]
mov ecx, dword [ecx + 8]
add ecx, 0x10c
push ecx
push esi
push dword [eax]
lea eax, [ebp - 0x610]
push str._ZUpdate__ERROR_:_CRC_error__s__current_:__u_____original_:__s_
push eax
call fcn.0053be46
mov ecx, dword [ebp - 0x63c]
add esp, 0x1c
lea ecx, [ecx - 0x10]
call fcn.00402990
lea eax, [ebp - 0x610]
push eax
call fcn.00403d10
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x658]
push eax
call fcn.00411c10
mov edi, eax
push str.STR_125
mov byte [ebp - 4], 6
call fcn.004029b0
push str.STR_142
mov esi, eax
call fcn.004029b0
push esi
push dword [edi]
push eax
lea eax, [ebp - 0x610]
push str._s_:__s_n______Tip___s_n
push eax
call fcn.0053be46
mov ecx, dword [ebp - 0x658]
add esp, 0x28
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.00402990
lea edx, [ebp - 0x610]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x412857
sub edx, ecx
lea eax, [ebp - 0x610]
mov ecx, dword [ebp - 0x62c]
push edx
push eax
lea ecx, [ecx + 0xc5c]
call fcn.00406320
mov bh, 1
jmp 0x41288a
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x744]
mov byte [ebp - 4], 0
call fcn.00410b70
lea eax, [ebp - 0x744]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.0055d4f7
add esp, 4
lea ecx, [ebp - 0x6ac]
mov dword [ebp - 4], 0xffffffff
call fcn.00410b70
lea eax, [ebp - 0x6ac]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.0055d4f7
mov esi, dword [ebp - 0x62c]
add esp, 4
lea ecx, [ebp - 0x630]
call fcn.004110b0
lea eax, [esi + 4]
push eax
push dword [eax]
lea ecx, [ebp - 0x638]
call fcn.004024f0
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x630]
call fcn.00411050
test al, al
je 0x412251
push str._ZUpdate__Move_patch_files_successfully_complete.
call fcn.00403d10
add esp, 4
test bh, bh
sete al
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.0053bf68
mov esp, ebp
pop ebp
ret