Function at 0x100125a0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x10027d10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x94]
mov ebx, 1
lea esi, [esp + 0x30]
mov eax, edi
mov dword [esp + 0x10], 0
mov dword [edi + 0xac], ebx
call fcn.10010ae0
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
jb 0x100125f0
mov eax, dword [eax + 4]
jmp 0x100125f3
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10012609
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1001260b
xor bl, bl
cmp dword [esp + 0x48], ebp
jb 0x1001261e
mov eax, dword [esp + 0x34]
push eax
call fcn.100163ce
add esp, 4
mov eax, edi
test bl, bl
je 0x100127ca
lea esi, [esp + 0x30]
call fcn.10010ae0
push eax
mov edi, str..tmp
lea esi, [esp + 0x18]
mov dword [esp + 0x90], 0
call fcn.10012f30
add esp, 4
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x48], ebp
jb 0x10012669
mov ecx, dword [esp + 0x34]
push ecx
call fcn.100163ce
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
cmp dword [esp + 0x2c], ebp
jae 0x1001268c
lea eax, [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x100126a3
lea eax, [esp + 0x18]
push eax
call esi
mov edi, dword [esp + 0x94]
lea esi, [esp + 0x4c]
mov eax, edi
call fcn.10010ae0
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x100126c6
lea ecx, [esp + 0x18]
cmp dword [eax + 0x18], ebp
jb 0x100126d0
mov eax, dword [eax + 4]
jmp 0x100126d3
add eax, 4
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
push ecx
push eax
call ebx
cmp dword [esp + 0x64], ebp
jb 0x100126f0
mov edx, dword [esp + 0x50]
push edx
call fcn.100163ce
add esp, 4
lea esi, [esp + 0x4c]
mov eax, edi
call fcn.10010ae0
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x2c], ebp
jae 0x10012709
lea ecx, [esp + 0x18]
cmp dword [eax + 0x18], ebp
jb 0x10012713
mov eax, dword [eax + 4]
jmp 0x10012716
add eax, 4
push ecx
push eax
call ebx
cmp dword [esp + 0x64], ebp
jb 0x1001272d
mov eax, dword [esp + 0x50]
push eax
call fcn.100163ce
add esp, 4
lea esi, [esp + 0x68]
mov eax, edi
call fcn.10010ae0
mov edi, eax
mov eax, dword [esp + 0x94]
lea esi, [esp + 0x4c]
mov byte [esp + 0x8c], 3
call fcn.10010b10
cmp dword [edi + 0x18], ebp
jb 0x1001275c
mov edi, dword [edi + 4]
jmp 0x1001275f
add edi, 4
cmp dword [eax + 0x18], ebp
jb 0x10012769
mov eax, dword [eax + 4]
jmp 0x1001276c
add eax, 4
push edi
push eax
call ebx
cmp dword [esp + 0x64], ebp
jb 0x10012783
mov ecx, dword [esp + 0x50]
push ecx
call fcn.100163ce
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
cmp dword [esp + 0x80], ebp
jb 0x100127ae
mov edx, dword [esp + 0x6c]
push edx
call fcn.100163ce
add esp, 4
cmp dword [esp + 0x2c], ebp
jb 0x10012856
mov eax, dword [esp + 0x18]
push eax
call fcn.100163ce
add esp, 4
jmp 0x10012856
lea esi, [esp + 0x68]
call fcn.10010ae0
mov edi, eax
mov ebx, dword [esp + 0x94]
lea esi, [esp + 0x4c]
mov eax, ebx
mov dword [esp + 0x8c], 4
call fcn.10010b10
cmp dword [edi + 0x18], ebp
jb 0x100127fc
mov edi, dword [edi + 4]
jmp 0x100127ff
add edi, 4
cmp dword [eax + 0x18], ebp
jb 0x10012809
mov eax, dword [eax + 4]
jmp 0x1001280c
add eax, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp dword [esp + 0x64], ebp
jb 0x10012827
mov ecx, dword [esp + 0x50]
push ecx
call fcn.100163ce
add esp, 4
xor esi, esi
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], esi
mov byte [esp + 0x50], 0
cmp dword [esp + 0x80], ebp
jb 0x10012850
mov edx, dword [esp + 0x6c]
push edx
call fcn.100163ce
add esp, 4
mov dword [ebx + 0xac], esi
mov ecx, dword [esp + 0x94]
pop edi
xor eax, eax
cmp dword [ecx + 0xac], eax
mov ecx, dword [esp + 0x80]
pop esi
pop ebp
sete al
pop ebx
mov dword fs:[0], ecx
add esp, 0x80
ret 4