Function at 0x7d249fe0
Capabilities:
Delete file

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebp
push esi
push edi
xor edi, edi
mov byte [esp + 0x14], 0
push edi
push edi
push 3
push edi
push 7
push 0x40000000
push dword [esp + 0x60]
xor esi, esi
mov byte [esp + 0x34], 0
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], esi
call ebx
mov ebp, eax
test ebp, ebp
je 0x7d24a1f6
cmp ebp, 0xffffffff
je 0x7d24a1f6
push edi
push edi
push 4
push edi
push 7
push 0x40000000
push dword [esp + 0x64]
call ebx
mov dword [esp + 0x30], eax
test eax, eax
je 0x7d24a1cf
cmp eax, 0xffffffff
je 0x7d24a1cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
cmp eax, 0xb7
mov eax, dword [esp + 0x50]
mov edx, 1
movzx ecx, cl
cmovne ecx, edx
mov dword [esp + 0x18], ecx
test eax, eax
je 0x7d24a0b9
push edi
push edi
push 4
push edi
push 7
push 0x40000000
push eax
call ebx
mov esi, eax
test esi, esi
je 0x7d24a1c3
cmp esi, 0xffffffff
je 0x7d24a1c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
cmp eax, 0xb7
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x38]
push eax
push ebp
call fcn.7d24a290
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x40]
call fcn.7d24a290
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
test esi, esi
je 0x7d24a134
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
push esi
call fcn.7d24a290
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
jmp 0x7d24a14c
mov eax, ebx
mov ecx, edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x38], edi
je 0x7d24a15c
test edx, edx
je 0x7d24a164
test ecx, ecx
jne 0x7d24a189
jmp 0x7d24a164
test edx, edx
jne 0x7d24a164
test ecx, ecx
je 0x7d24a189
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0x20], edx
jne 0x7d24a184
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x24], ecx
jne 0x7d24a184
cmp dword [esp + 0x1c], edx
jne 0x7d24a184
cmp dword [esp + 0x28], ecx
je 0x7d24a189
mov edi, 1
test eax, eax
je 0x7d24a197
cmp eax, ebx
je 0x7d24a197
push eax
call fcn.7d221537
test ebx, ebx
je 0x7d24a1a1
push ebx
call fcn.7d221537
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x7d24a1af
push eax
call fcn.7d221537
test esi, esi
je 0x7d24a1c3
cmp esi, 0xffffffff
je 0x7d24a1c3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x7d24a1c9
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x30]
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
je 0x7d24a1e9
push dword [esp + 0x50]
call esi
cmp byte [esp + 0x18], 0
je 0x7d24a1f6
push dword [esp + 0x4c]
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0xc