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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10106226
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x10150440]
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.10027040
push esi
push edi
push ebx
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0
call fcn.100273f0
test eax, eax
jne 0x1001f53b
xor esi, esi
jmp 0x1001f703
call fcn.10005390
mov ecx, eax
test ecx, ecx
je 0x1001f72e
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.100275f0
test eax, eax
je 0x1001f6df
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 0x1001f6df
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 0x1001f5e1
sub esi, ecx
mov ecx, dword [ebx + 0x14]
sar esi, 1
mov dword [ebp - 0x81c], ecx
cmp esi, ecx
ja 0x1001f62a
mov edi, ebx
cmp ecx, 8
jb 0x1001f606
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 0x1001f6e1
cmp esi, 0x7ffffffe
ja 0x1001f738
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x1001f64a
mov edi, SysReAllocString
jmp 0x1001f668
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x1001f660
mov edi, SysReAllocString
jmp 0x1001f668
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov ecx, ebx
push eax
call fcn.10013d80
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 0x1001f6d6
mov eax, dword [ebx]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1001f6cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001f73d
mov eax, edx
push ecx
push eax
call fcn.1007364e
add esp, 8
mov dword [ebx], edi
mov esi, 1
jmp 0x1001f6e1
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 0x1001f703
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x828]
call fcn.10027060
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