Function at 0x10007220
Capabilities:
Delete file

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
push esi
mov edx, dword [esi + 0x4e6c]
cmp edx, edi
mov edx, dword [esp + 0x1c]
sete al
push eax
push ecx
push edx
call fcn.10007150
mov eax, dword [esi + 0xaf6a]
add esp, 0x10
cmp eax, edi
je 0x100073ee
cmp eax, dword [esi + 0x4e7c]
je 0x100072a9
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x10007279
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
test byte [esi + 0x4ee1], 0x40
jne 0x1000728f
mov eax, dword [esi + 0xaf6a]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi + 0xaf6a]
push ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [esi + 0xaf6a], edi
jmp 0x100073ee
mov edx, dword [esi + 8]
lea ebp, [esi + 8]
cmp edx, 0xffffffff
je 0x100073ee
mov eax, dword [esi + 0x4e88]
mov ecx, dword [esi + 0x4e8c]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x4e90]
cmp eax, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], ecx
je 0x10007303
push 2
push edi
push edi
push edx
call fcn.1000ddf0
mov dword [esi + 0x4e88], eax
mov dword [esi + 0x4e8c], edx
mov eax, dword [esi + 0x4e88]
mov ecx, edx
add esp, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
test byte [esi + 0x4ee1], 0x80
push ebx
jne 0x100073dc
mov ebx, dword [esi + 0x4e8c]
mov edi, dword [esi + 0x4e88]
mov edx, dword [ebp]
push 0
push ebx
push edi
push edx
call fcn.1000ddf0
add esp, 0x10
cmp eax, edi
jne 0x100073da
cmp edx, ebx
jne 0x100073da
mov dword [esi + 0x4ea8], edi
mov edi, dword [esi + 0x4e94]
mov dword [esi + 0x4eac], ebx
test edi, edi
push esi
push ebp
je 0x100073a1
push edi
call fcn.10010380
add esp, 0xc
test eax, eax
jne 0x100073da
mov eax, dword [edi + 0x60]
mov edx, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
mov ebx, dword [esi + 0x4ea8]
add eax, edx
add eax, ecx
mov ecx, dword [edi + 0x20]
lea edx, [eax + ecx + 0x2e]
mov eax, dword [esp + 0x24]
add ebx, edx
mov dword [esi + 0x4ea8], ebx
mov ecx, dword [esi + 0x4eac]
adc ecx, 0
inc eax
mov dword [esi + 0x4eac], ecx
mov edi, dword [edi + 0x64]
mov dword [esp + 0x24], eax
jmp 0x1000734f
mov eax, dword [esi + 0x4ea0]
mov ecx, dword [esi + 0x4e9c]
mov edx, dword [esi + 0x4ea8]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
sub edx, eax
push ecx
push eax
mov eax, dword [esi + 0x4eac]
sbb eax, ecx
push eax
mov eax, dword [esp + 0x40]
push edx
cdq
push edx
push eax
call fcn.10010b20
add esp, 0x28
xor edi, edi
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp], 0xffffffff
pop ebx
mov eax, dword [esi + 0x4eb8]
cmp eax, edi
je 0x10007407
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [esi + 0x4eb8], edi
mov eax, dword [esi + 0x4e74]
cmp eax, edi
je 0x10007420
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov dword [esi + 0x4e74], edi
mov eax, dword [esi + 0x4e78]
cmp eax, edi
je 0x10007433
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, dword [esi + 0x4e7c]
mov dword [esi + 0x4e78], edi
cmp eax, edi
je 0x1000744c
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esi + 0x4e7c], edi
cmp eax, 3
je 0x10007464
push esi
call fcn.10006e90
add esp, 4
pop edi
pop esi
pop ebp
add esp, 8
ret