Function at 0x40daa8
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 0x40dad9
mov eax, dword [eax + 8]
sub eax, ecx
mov ecx, 0x420
cdq
idiv ecx
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x40dae0
xor eax, eax
jmp 0x40df2e
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
test eax, eax
push edi
jbe 0x40dba3
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 0x423e24
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi + 0x208]
push eax
push 0x423e18
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 0x40db73
call fcn.004018da
add esp, 0xc
test eax, eax
jne 0x40db83
lea eax, [ebp - 0x224]
push 1
push eax
push esi
call fcn.004016c4
add esp, 0xc
test eax, eax
je 0x40dcbb
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 0x40daf9
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x4229d8
mov dword [ebp - 0x18], 0x4229c0
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x40dbc0
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.0040d608
test eax, eax
je 0x40dbf0
push 0x7d0
lea eax, [ebp - 0x1c]
push 2
push eax
mov ecx, esi
call fcn.0040d65d
call fcn.0040ac30
mov dword [eax + 0xc], 0x71
mov eax, dword [ebp - 0x10]
dec eax
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
jl 0x40dce4
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 0x40dca0
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 0x423e00
push eax
push 0x423e18
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 0x40dc7e
lea eax, [ebp - 0x224]
push eax
call fcn.00401a3c
test eax, eax
pop ecx
je 0x40dccf
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 0x40dccf
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 0x40dc0a
jmp 0x40dce4
mov dword [ebp - 0xc], edi
call fcn.0040ac30
mov dword [eax + 0xc], 0x6c
jmp 0x40ddfe
and dword [ebp - 0xc], 0
call fcn.0040ac30
mov dword [eax + 0xc], 0x65
jmp 0x40ddfe
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
mov dword [ebp - 8], eax
jl 0x40dd76
mov esi, eax
imul esi, esi, 0x420
mov dword [ebp - 4], esi
jmp 0x40dd03
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 0x423e24
push edi
push 0x423e18
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 0x40ddee
dec dword [ebp - 8]
sub dword [ebp - 4], 0x420
cmp dword [ebp - 8], 0
mov dword [esi + 0x41c], 1
jge 0x40dd00
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x40df28
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 0x40ddde
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 0x423e00
stosw word es:[edi], ax
push edx
push 0x423e18
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 0x40dd86
jmp 0x40df28
and dword [ebp - 0xc], 0
call fcn.0040ac30
mov dword [eax + 0xc], 0x72
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x40deff
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 0x40de38
lea eax, [esi + 0x208]
push eax
call fcn.00401a3c
pop ecx
jmp 0x40de86
cmp dword [esi + 0x418], eax
je 0x40de86
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 0x423e24
push eax
push 0x423e18
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 0x40deea
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 0x423e00
stosw word es:[edi], ax
push esi
push 0x423e18
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 0x40deea
call fcn.0040ac30
mov dword [eax + 0xc], 0x6d
mov esi, dword [ebp - 4]
sub esi, 0x420
dec dword [ebp - 8]
mov dword [ebp - 4], esi
jne 0x40de19
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x84]
test eax, eax
jne 0x40df11
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 0x40df28
call fcn.0040ac30
mov dword [eax + 0xc], 0x73
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4