Function at 0x412281
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 1
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4122b2
mov eax, dword [eax + 8]
sub eax, ecx
mov ecx, 0x420
cdq
idiv ecx
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x4122b9
xor eax, eax
jmp 0x412707
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
test eax, eax
push edi
jbe 0x41237c
and dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 8]
and word [ebp - 0x224], 0
mov ecx, 0x81
add esi, dword [eax + 4]
xor eax, eax
lea edi, [ebp - 0x222]
push str..movjz.new
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x208]
push eax
push str._s_s
lea eax, [ebp - 0x224]
push 0x103
push eax
call ebx
lea eax, [ebp - 0x224]
push eax
call fcn.00401a3c
add esp, 0x18
xor edi, edi
cmp dword [esi + 0x410], edi
lea eax, [ebp - 0x224]
push 1
push eax
push esi
je 0x41234c
call fcn.004018da
add esp, 0xc
test eax, eax
jne 0x41235c
lea eax, [ebp - 0x224]
push 1
push eax
push esi
call fcn.004016c4
add esp, 0xc
test eax, eax
je 0x412494
inc dword [ebp - 4]
add dword [ebp - 8], 0x420
mov eax, dword [ebp - 4]
mov dword [esi + 0x418], 1
cmp eax, dword [ebp - 0x10]
jb 0x4122d2
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], str.hao123Juzi.exe
mov dword [ebp - 0x18], str.Uninst.exe
mov eax, dword [esi + 0x7c]
test eax, eax
jne 0x412399
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0x1c]
push 2
push ecx
push eax
mov ecx, esi
call fcn.00411da6
test eax, eax
je 0x4123c9
push 0x7d0
lea eax, [ebp - 0x1c]
push 2
push eax
mov ecx, esi
call fcn.00411dfb
call fcn.0040eae2
mov dword [eax + 0xc], 0x71
mov eax, dword [ebp - 0x10]
dec eax
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
jl 0x4124bd
imul esi, esi, 0x420
mov dword [ebp - 8], esi
mov eax, dword [ebp + 8]
add esi, dword [eax + 4]
lea eax, [esi + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412479
and word [ebp - 0x224], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x208]
push str..movjz.bak
push eax
push str._s_s
lea eax, [ebp - 0x224]
push 0x103
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412457
lea eax, [ebp - 0x224]
push eax
call fcn.00401a3c
test eax, eax
pop ecx
je 0x4124a8
push 1
lea eax, [ebp - 0x224]
pop edi
push edi
push eax
lea eax, [esi + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4124a8
mov dword [esi + 0x414], edi
mov esi, dword [ebp - 8]
dec dword [ebp - 4]
sub esi, 0x420
cmp dword [ebp - 4], 0
mov dword [ebp - 8], esi
jge 0x4123e3
jmp 0x4124bd
mov dword [ebp - 0xc], edi
call fcn.0040eae2
mov dword [eax + 0xc], 0x6c
jmp 0x4125d7
and dword [ebp - 0xc], 0
call fcn.0040eae2
mov dword [eax + 0xc], 0x65
jmp 0x4125d7
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
mov dword [ebp - 8], eax
jl 0x41254f
mov esi, eax
imul esi, esi, 0x420
mov dword [ebp - 4], esi
jmp 0x4124dc
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
and word [ebp - 0x224], 0
mov ecx, 0x81
lea edi, [ebp - 0x222]
add esi, dword [eax + 4]
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edi, [esi + 0x208]
push str..movjz.new
push edi
push str._s_s
lea eax, [ebp - 0x224]
push 0x103
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x224]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4125c7
dec dword [ebp - 8]
sub dword [ebp - 4], 0x420
cmp dword [ebp - 8], 0
mov dword [esi + 0x41c], 1
jge 0x4124d9
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x412701
xor esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, esi
add edx, dword [eax + 4]
cmp dword [edx + 0x414], 0
je 0x4125b7
and word [ebp - 0x224], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
add edx, 0x208
push str..movjz.bak
stosw word es:[edi], ax
push edx
push str._s_s
lea eax, [ebp - 0x224]
push 0x103
push eax
call ebx
lea eax, [ebp - 0x224]
push eax
call fcn.00401a3c
add esp, 0x18
add esi, 0x420
dec dword [ebp - 4]
jne 0x41255f
jmp 0x412701
and dword [ebp - 0xc], 0
call fcn.0040eae2
mov dword [eax + 0xc], 0x72
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x4126d8
mov esi, eax
imul esi, esi, 0x420
inc eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add esi, dword [eax + 4]
xor eax, eax
cmp dword [esi + 0x41c], eax
je 0x412611
lea eax, [esi + 0x208]
push eax
call fcn.00401a3c
pop ecx
jmp 0x41265f
cmp dword [esi + 0x418], eax
je 0x41265f
mov word [ebp - 0x224], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x208]
push str..movjz.new
push eax
push str._s_s
lea eax, [ebp - 0x224]
push 0x103
push eax
call ebx
lea eax, [ebp - 0x224]
push eax
call fcn.00401a3c
add esp, 0x18
cmp dword [esi + 0x414], 0
je 0x4126c3
and word [ebp - 0x42c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
add esi, 0x208
push str..movjz.bak
stosw word es:[edi], ax
push esi
push str._s_s
lea eax, [ebp - 0x42c]
push 0x103
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x42c]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4126c3
call fcn.0040eae2
mov dword [eax + 0xc], 0x6d
mov esi, dword [ebp - 4]
sub esi, 0x420
dec dword [ebp - 8]
mov dword [ebp - 4], esi
jne 0x4125f2
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x8c]
test eax, eax
jne 0x4126ea
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412701
call fcn.0040eae2
mov dword [eax + 0xc], 0x73
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4