Function at 0x4117d2
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 0x411803
mov eax, dword [eax + 8]
sub eax, ecx
mov ecx, 0x420
cdq
idiv ecx
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x41180a
xor eax, eax
jmp 0x411c58
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
test eax, eax
push edi
jbe 0x4118cd
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 0x4295e4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x208]
push eax
push 0x4295d8
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 0x41189d
call fcn.004018da
add esp, 0xc
test eax, eax
jne 0x4118ad
lea eax, [ebp - 0x224]
push 1
push eax
push esi
call fcn.004016c4
add esp, 0xc
test eax, eax
je 0x4119e5
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 0x411823
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x427eb8
mov dword [ebp - 0x18], 0x427ea0
mov eax, dword [esi + 0x7c]
test eax, eax
jne 0x4118ea
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.004112e8
test eax, eax
je 0x41191a
push 0x7d0
lea eax, [ebp - 0x1c]
push 2
push eax
mov ecx, esi
call fcn.0041133d
call fcn.0040e21d
mov dword [eax + 0xc], 0x71
mov eax, dword [ebp - 0x10]
dec eax
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
jl 0x411a0e
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 0x4119ca
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 0x4295c0
push eax
push 0x4295d8
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 0x4119a8
lea eax, [ebp - 0x224]
push eax
call fcn.00401a3c
test eax, eax
pop ecx
je 0x4119f9
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 0x4119f9
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 0x411934
jmp 0x411a0e
mov dword [ebp - 0xc], edi
call fcn.0040e21d
mov dword [eax + 0xc], 0x6c
jmp 0x411b28
and dword [ebp - 0xc], 0
call fcn.0040e21d
mov dword [eax + 0xc], 0x65
jmp 0x411b28
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
mov dword [ebp - 8], eax
jl 0x411aa0
mov esi, eax
imul esi, esi, 0x420
mov dword [ebp - 4], esi
jmp 0x411a2d
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 0x4295e4
push edi
push 0x4295d8
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 0x411b18
dec dword [ebp - 8]
sub dword [ebp - 4], 0x420
cmp dword [ebp - 8], 0
mov dword [esi + 0x41c], 1
jge 0x411a2a
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x411c52
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 0x411b08
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 0x4295c0
stosw word es:[edi], ax
push edx
push 0x4295d8
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 0x411ab0
jmp 0x411c52
and dword [ebp - 0xc], 0
call fcn.0040e21d
mov dword [eax + 0xc], 0x72
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x411c29
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 0x411b62
lea eax, [esi + 0x208]
push eax
call fcn.00401a3c
pop ecx
jmp 0x411bb0
cmp dword [esi + 0x418], eax
je 0x411bb0
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 0x4295e4
push eax
push 0x4295d8
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 0x411c14
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 0x4295c0
stosw word es:[edi], ax
push esi
push 0x4295d8
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 0x411c14
call fcn.0040e21d
mov dword [eax + 0xc], 0x6d
mov esi, dword [ebp - 4]
sub esi, 0x420
dec dword [ebp - 8]
mov dword [ebp - 4], esi
jne 0x411b43
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x8c]
test eax, eax
jne 0x411c3b
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 0x411c52
call fcn.0040e21d
mov dword [eax + 0xc], 0x73
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4