Function at 0x40e488
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 0x40e4b9
mov eax, dword [eax + 8]
sub eax, ecx
mov ecx, 0x420
cdq
idiv ecx
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x40e4c0
xor eax, eax
jmp 0x40e90e
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
test eax, eax
push edi
jbe 0x40e583
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 0x40e553
call fcn.004018da
add esp, 0xc
test eax, eax
jne 0x40e563
lea eax, [ebp - 0x224]
push 1
push eax
push esi
call fcn.004016c4
add esp, 0xc
test eax, eax
je 0x40e69b
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 0x40e4d9
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], str.hao123Juzi.exe
mov dword [ebp - 0x18], str.Uninst.exe
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x40e5a0
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.0040dfc6
test eax, eax
je 0x40e5d0
push 0x7d0
lea eax, [ebp - 0x1c]
push 2
push eax
mov ecx, esi
call fcn.0040e01b
call fcn.0040b50b
mov dword [eax + 0xc], 0x71
mov eax, dword [ebp - 0x10]
dec eax
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
jl 0x40e6c4
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 0x40e680
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 0x40e65e
lea eax, [ebp - 0x224]
push eax
call fcn.00401a3c
test eax, eax
pop ecx
je 0x40e6af
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 0x40e6af
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 0x40e5ea
jmp 0x40e6c4
mov dword [ebp - 0xc], edi
call fcn.0040b50b
mov dword [eax + 0xc], 0x6c
jmp 0x40e7de
and dword [ebp - 0xc], 0
call fcn.0040b50b
mov dword [eax + 0xc], 0x65
jmp 0x40e7de
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
mov dword [ebp - 8], eax
jl 0x40e756
mov esi, eax
imul esi, esi, 0x420
mov dword [ebp - 4], esi
jmp 0x40e6e3
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 0x40e7ce
dec dword [ebp - 8]
sub dword [ebp - 4], 0x420
cmp dword [ebp - 8], 0
mov dword [esi + 0x41c], 1
jge 0x40e6e0
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x40e908
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 0x40e7be
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 0x40e766
jmp 0x40e908
and dword [ebp - 0xc], 0
call fcn.0040b50b
mov dword [eax + 0xc], 0x72
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x40e8df
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 0x40e818
lea eax, [esi + 0x208]
push eax
call fcn.00401a3c
pop ecx
jmp 0x40e866
cmp dword [esi + 0x418], eax
je 0x40e866
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 0x40e8ca
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 0x40e8ca
call fcn.0040b50b
mov dword [eax + 0xc], 0x6d
mov esi, dword [ebp - 4]
sub esi, 0x420
dec dword [ebp - 8]
mov dword [ebp - 4], esi
jne 0x40e7f9
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x88]
test eax, eax
jne 0x40e8f1
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 0x40e908
call fcn.0040b50b
mov dword [eax + 0xc], 0x73
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4