Function at 0x61605530
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov esi, dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call esi
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x616056a0
mov ebx, eax
test edi, edi
je 0x61605670
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
call esi
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
je 0x61605778
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x61605680
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], 0
and eax, 4
mov dword [ebp - 0x1c], eax
je 0x616056b0
mov eax, dword [ebp + 0x1c]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
call sym._apply_patch_to_file_by_handles
mov esi, eax
test eax, eax
jne 0x61605690
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov edx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x1c], eax
cmp edi, 0xffffffff
je 0x61605649
mov dword [ebp - 0x20], edx
mov dword [esp], edi
call edx
mov edx, dword [ebp - 0x20]
sub esp, 4
mov dword [esp], ebx
call edx
mov ecx, dword [ebp - 0x1c]
mov eax, dword fs:[0x18]
sub esp, 4
mov dword [eax + 0x34], ecx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x20]
mov edi, 0xffffffff
test eax, eax
je 0x616055de
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x18], eax
jmp 0x616055f5
mov dword [ebp - 0x1c], 0
mov edx, dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x61605636
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call esi
sub esp, 0x1c
mov edx, eax
cmp eax, 0xffffffff
je 0x61605798
mov eax, dword [ebp + 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [ebp - 0x20], edx
call sym._apply_patch_to_file_by_handles
mov edx, dword [ebp - 0x20]
test eax, eax
mov esi, eax
jne 0x6160575b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], edx
mov edx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
call edx
mov eax, dword [ebp + 0x10]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov edx, dword [ebp - 0x20]
sub esp, 4
jmp 0x61605636
mov dword [esp], edx
mov edx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x20], edx
call edx
mov edx, dword [ebp - 0x20]
sub esp, 4
jmp 0x61605636
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov edx, dword [sym.imp.kernel32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x1c], eax
jmp 0x61605649
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov edx, dword [sym.imp.kernel32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x1c], eax
jmp 0x61605636