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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101935b0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ebx, [edi + 0xf8]
push ebx
lea ecx, [ebp - 0x44]
call fcn.10002700
mov dword [ebp - 4], 0
mov ecx, 0x110
cmp dword [edi + 0x33c], 5
mov eax, 0x128
cmovne eax, ecx
add eax, edi
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x100f46d6
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x44]
call fcn.10001e70
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10002700
mov byte [ebp - 4], 1
lea eax, [edi + 0x128]
cmp dword [esi + 0x10], 0
cmove esi, eax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100f4706
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x2c]
push eax
call fcn.10001e70
cmp dword [ebp - 0x18], 8
lea esi, [ebp - 0x2c]
cmovae esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100f48b3
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100f473e
cmp byte [0x101fc262], al
jne 0x100f4749
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push esi
push str.File_does_not_exist_at__s
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0xc
cmp byte [edi + 0x62], 0
jne 0x100f48af
cmp dword [ebp - 0x30], 8
lea ebx, [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmovae ebx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x100f47f7
test ebx, ebx
je 0x100f47f7
push eax
push ebx
call fcn.101687cf
add esp, 8
test eax, eax
je 0x100f48af
call fcn.1016ef71
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x101fc26c]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x100f47be
cmp byte [0x101fc262], 0
jne 0x100f47cb
call fcn.100e0c40
mov eax, dword [0x101fc26c]
mov dword [ebp - 0x48], eax
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x24]
mov ecx, esi
push eax
push dword [ebp - 0x50]
push ebx
push str.Failed_to_rename_file_from__s_to__s._The_error_is_:_d
push 0x101ace0c
push dword [ebp - 0x48]
call dword [0x1019a4f8]
call esi
add esp, 0x18
jmp 0x100f482d
mov ecx, dword [0x101fc26c]
test ecx, ecx
je 0x100f480a
cmp byte [0x101fc262], 0
jne 0x100f4815
call fcn.100e0c40
mov ecx, dword [0x101fc26c]
mov eax, dword [ecx]
push str.invalid_params_for_renameFile
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 8
mov eax, dword [0x101fc26c]
mov ebx, dword [ebp - 0x4c]
test eax, eax
je 0x100f4842
cmp byte [0x101fc262], 0
jne 0x100f484c
call fcn.100e0c40
mov eax, dword [0x101fc26c]
push eax
push 1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.100fdb80
add esp, 8
test al, al
jne 0x100f48af
call fcn.100e0f20
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
push ebx
cmovae edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
mov esi, dword [eax]
cmovae ecx, dword [ebp - 0x44]
push edx
push ecx
mov esi, dword [esi + 0x24]
mov ecx, esi
push str.Failed_to_rename_file__s_to__s_with_error_code__lu.
push 0x101ace0c
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x18
lea eax, [ebp - 0x44]
push eax
lea eax, [edi + 0x340]
push eax
push ebx
call fcn.100f03b0
jmp 0x100f48e0
mov bl, 1
jmp 0x100f48e2
push 0x51
push str.Failed_to_rename_the_file_as_there_is_already_another_file_with_that_name_present
lea ecx, [edi + 0x348]
mov dword [edi + 0x340], 0xffffff9c
call fcn.10001d60
mov dword [edi + 0x368], 0
mov byte [edi + 0x364], 1
xor bl, bl
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x100f4918
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100f490e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100f4982
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x100f4962
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100f4958
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100f4982
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
ret 4
call fcn.101686f5
int3