Function at 0x70e1d8a0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70e6df95
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov ebx, 1
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.70df39c7
push 0
push 0
push 3
push 0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
add eax, 4
push SysReAllocString
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x70e1da17
mov ecx, edi
lea esi, [ebp - 0x24]
call fcn.70e1d73d
mov esi, eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, esi
je 0x70e1d95f
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
test eax, eax
jne 0x70e1d94d
mov edx, dword [ebp - 0x18]
push edx
call fcn.70df3455
mov eax, dword [ebp - 0x1c]
add esp, 4
push eax
call fcn.70df3455
add esp, 4
mov ecx, dword [esi]
mov dword [ebp - 0x1c], ecx
mov esi, dword [esi + 4]
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
push edx
call ebx
test eax, eax
jne 0x70e1d985
mov eax, dword [ebp - 0x20]
push eax
call fcn.70df3455
mov ecx, dword [ebp - 0x24]
add esp, 4
push ecx
call fcn.70df3455
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add edx, 4
push edx
call esi
mov eax, dword [ebp - 0x1c]
add eax, 4
push eax
call esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.70df39c7
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
push ecx
mov dword [ebp - 0x14], 1
call ebx
test eax, eax
jne 0x70e1d9db
mov edx, dword [ebp - 0x18]
push edx
call fcn.70df3455
mov eax, dword [ebp - 0x1c]
add esp, 4
push eax
call fcn.70df3455
add esp, 4
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
push ecx
call ebx
test eax, eax
jne 0x70e1da01
mov edx, dword [ebp + 0x10]
push edx
call fcn.70df3455
mov eax, dword [ebp + 0xc]
add esp, 4
push eax
call fcn.70df3455
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
push 0
push 0
push 3
push 0
push 5
add eax, 4
push SysReAllocString
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x70e1db31
mov ecx, edi
lea esi, [ebp - 0x24]
call fcn.70e1d73d
mov esi, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp ecx, esi
je 0x70e1da8b
mov edx, dword [ebp - 0x18]
push edx
call ebx
test eax, eax
jne 0x70e1da79
mov eax, dword [ebp - 0x18]
push eax
call fcn.70df3455
mov ecx, dword [ebp - 0x1c]
add esp, 4
push ecx
call fcn.70df3455
add esp, 4
mov edx, dword [esi]
mov dword [ebp - 0x1c], edx
mov esi, dword [esi + 4]
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
push eax
call ebx
test eax, eax
jne 0x70e1dab1
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.70df3455
mov edx, dword [ebp - 0x24]
add esp, 4
push edx
call fcn.70df3455
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
push esi
lea edi, [ebp - 0x1c]
call fcn.70df4c1b
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
push eax
mov dword [ebp - 0x14], 1
call ebx
test eax, eax
jne 0x70e1daf1
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.70df3455
mov edx, dword [ebp - 0x1c]
add esp, 4
push edx
call fcn.70df3455
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
call ebx
test eax, eax
jne 0x70e1da01
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.70df3455
mov edx, dword [ebp + 0xc]
add esp, 4
push edx
call fcn.70df3455
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.70df39c7
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push eax
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x70e1db6a
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.70df3455
mov edx, dword [ebp - 0x1c]
add esp, 4
push edx
call fcn.70df3455
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
call esi
test eax, eax
jne 0x70e1db90
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.70df3455
mov edx, dword [ebp + 0xc]
add esp, 4
push edx
call fcn.70df3455
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc