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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10106216
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x1015050c]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x828]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x818], eax
call fcn.100270b0
push esi
push edi
push ebx
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0
call fcn.10027460
test eax, eax
jne 0x1001f55b
xor esi, esi
jmp 0x1001f723
call fcn.10005390
mov ecx, eax
test ecx, ecx
je 0x1001f74e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
push 1
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x828]
call fcn.10027660
test eax, eax
je 0x1001f6ff
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.1008e9b0
add esp, 0xc
lea eax, [ebp - 0x810]
push str.EdgeInst.dll
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001f6ff
push 4
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, dword [ebp - 0x818]
lea esi, [ebp - 0x810]
add ebx, 0x190
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001f601
sub esi, ecx
mov ecx, dword [ebx + 0x14]
sar esi, 1
mov dword [ebp - 0x81c], ecx
cmp esi, ecx
ja 0x1001f64a
mov edi, ebx
cmp ecx, 8
jb 0x1001f626
mov edi, dword [ebx]
mov dword [ebx + 0x10], esi
lea eax, [ebp - 0x810]
add esi, esi
push esi
push eax
push edi
call fcn.1008f620
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
lea esi, [eax + 1]
jmp 0x1001f701
cmp esi, 0x7ffffffe
ja 0x1001f758
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x1001f66a
mov edi, SysReAllocString
jmp 0x1001f688
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x1001f680
mov edi, SysReAllocString
jmp 0x1001f688
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, ebx
push eax
call fcn.10013d10
mov dword [ebx + 0x10], esi
add esi, esi
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x810]
push esi
mov dword [ebx + 0x14], edi
mov edi, dword [ebp - 0x818]
push eax
push edi
call fcn.1008f0a0
mov ecx, dword [ebp - 0x81c]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
cmp ecx, 8
jb 0x1001f6f6
mov eax, dword [ebx]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1001f6ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001f75d
mov eax, edx
push ecx
push eax
call fcn.1007364e
add esp, 8
mov dword [ebx], edi
mov esi, 1
jmp 0x1001f701
xor esi, esi
mov edi, dword [ebp - 0x814]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001f723
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x828]
call fcn.100270d0
mov eax, esi
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.10073638
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.100047f0
call fcn.1000a9d0
call fcn.100a9eb3
int3