Function at 0x81a7d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8ff720
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x92f584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ebx, 0x10
cmp dword [ebp + 0x1c], ebx
jae 0x81a814
lea eax, [ebp + 8]
push 0x91e470
push eax
call fcn.00894378
add esp, 8
test eax, eax
jne 0x81a857
mov eax, dword [esi]
cmp dword [eax + 0x14], ebx
jb 0x81a82f
mov eax, dword [eax]
mov edx, eax
call fcn.00817920
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], ebx
jae 0x81a841
lea eax, [ebp + 8]
push 0x91e470
push eax
call fcn.00894378
add esp, 8
test eax, eax
je 0x81a9f8
push eax
call fcn.00894869
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x50]
mov edi, dword [0x937288]
add esp, 4
test eax, eax
jne 0x81a873
mov eax, dword [edi + 0x50]
mov eax, dword [eax + 0x1c]
push str.RenameOverwrite
push eax
call fcn.0081d7d0
add esp, 8
test al, al
je 0x81a9b0
push str..bak
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00816670
add esp, 0xc
mov bl, 1
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0x2c]
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jae 0x81a8b6
lea edx, [ebp - 0x2c]
mov eax, edx
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x81a8d0
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x48]
call fcn.00812a60
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x81a8f2
lea ecx, [ebp - 0x48]
call fcn.008177c0
test al, al
jne 0x81a901
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], edi
jb 0x81a915
mov edx, dword [ebp - 0x48]
push edx
call fcn.008925e4
add esp, 4
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x81a920
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x81a92b
lea eax, [ebp + 8]
push ecx
push eax
call fcn.008936c2
add esp, 8
test eax, eax
jns 0x81a992
mov edx, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x81a944
lea edx, [ebp + 8]
call fcn.00817920
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x81a954
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x81a95f
lea eax, [ebp + 8]
push ecx
push eax
call fcn.008936c2
add esp, 8
test eax, eax
jns 0x81a992
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.008ec760
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.008ec760
mov eax, 5
jmp 0x81abef
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], edi
jb 0x81abd4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.008925e4
add esp, 4
jmp 0x81abd4
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x50]
test eax, eax
jne 0x81a9bd
mov eax, dword [edi + 0x50]
mov eax, dword [eax + 0x1c]
push str.Skip
push eax
call fcn.0081d7d0
add esp, 8
test al, al
je 0x81abd4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], ebx
jb 0x81a9ee
mov ecx, dword [ebp + 8]
push ecx
call fcn.008925e4
add esp, 4
mov eax, 0x88
jmp 0x81abef
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], ebx
jae 0x81aa03
lea eax, [ebp + 8]
push 0x91e584
push eax
call fcn.00894378
add esp, 8
test eax, eax
jne 0x81ab4d
mov eax, dword [esi]
cmp dword [eax + 0x14], ebx
jb 0x81aa22
mov eax, dword [eax]
mov ecx, eax
lea edi, [ebp - 0x2c]
call fcn.00817520
mov bl, 3
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1c], 0
mov esi, 0x10
je 0x81ab04
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x81aa4a
mov ecx, edi
call fcn.008172b0
test eax, eax
jne 0x81ab04
mov edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x81aa62
lea edx, [ebp - 0x2c]
call fcn.00817920
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x81aa72
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov eax, dword [ebp + 8]
je 0x81aa8f
cmp dword [ebp + 0x1c], esi
jae 0x81aa88
lea eax, [ebp + 8]
push 0x91e470
jmp 0x81aa9c
cmp dword [ebp + 0x1c], esi
jae 0x81aa97
lea eax, [ebp + 8]
push 0x91e584
push eax
call fcn.00894378
add esp, 8
test eax, eax
je 0x81a96d
push eax
call fcn.00894869
mov eax, dword [ebp + 8]
add esp, 4
cmp dword [ebp + 0x1c], esi
jae 0x81aac1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00812830
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x81aad9
lea ecx, [ebp - 0x48]
call fcn.008177c0
test al, al
jne 0x81aae8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.008ec760
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.008ec760
jmp 0x81abd4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], esi
jb 0x81ab19
mov edx, dword [ebp - 0x2c]
push edx
call fcn.008925e4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp + 0x1c], esi
jb 0x81ab43
mov eax, dword [ebp + 8]
push eax
call fcn.008925e4
add esp, 4
mov eax, 5
jmp 0x81abef
push eax
call fcn.00894869
mov edx, dword [ebp + 8]
add esp, 4
cmp dword [ebp + 0x1c], ebx
jae 0x81ab61
lea edx, [ebp + 8]
mov edi, 0xf
mov eax, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x81ab80
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x48]
call fcn.00812a60
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x81aba2
lea ecx, [ebp - 0x48]
call fcn.008177c0
test al, al
jne 0x81abb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], ebx
jb 0x81abc6
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.008925e4
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x81abed
mov edx, dword [ebp + 8]
push edx
call fcn.008925e4
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00892239
mov esp, ebp
pop ebp
ret 0x1c