Function at 0x10088940
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10088961
mov dword [ebp - 0x10], 2
jmp 0x10088968
mov dword [ebp - 0x10], 0
push 0x186a0
mov ecx, dword [ebp - 0x10]
or ecx, 1
or ecx, 4
or ecx, 0x10
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.10055330
push eax
call fcn.1006d4b0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10088b9d
call fcn.1006f4b0
cmp dword [eax], 8
je 0x10088ac5
movzx edx, byte [ebp + 8]
test edx, edx
je 0x10088ac0
push 0
push 0x80
push 3
push 0
push 7
push 0x12019f
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.10055330
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x10088abe
cmp dword [ebp - 0xc], 0
je 0x10088abe
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1006f4b0
mov ecx, dword [eax]
push ecx
call fcn.1006d3a0
add esp, 4
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.10055330
push eax
push str.open_db__s_failed_db_broken:_s__forced_reset_successful
push 7
call fcn.10072f60
add esp, 0x10
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.10055330
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
movzx edx, byte [ebp + 8]
test edx, edx
je 0x10088a49
mov dword [ebp - 0x14], 2
jmp 0x10088a50
mov dword [ebp - 0x14], 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
or eax, 1
or eax, 4
or eax, 0x10
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.10055330
push eax
call fcn.1006d4b0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10088ab6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1006f4b0
mov ecx, dword [eax]
push ecx
call fcn.1006d3a0
add esp, 4
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.10055330
push eax
push str.open_db__s_failed_db_broken:_s
push 7
call fcn.10072f60
add esp, 0x14
jmp 0x10088baa
mov eax, dword [ebp - 8]
jmp 0x10088bbe
jmp 0x10088ac5
jmp 0x10088baa
call fcn.1006f4b0
cmp dword [eax], 3
je 0x10088ad4
jmp 0x10088baa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1006f4b0
mov edx, dword [eax]
push edx
call fcn.1006d3a0
add esp, 4
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.10055330
push eax
push str.open_db__s_failed_db_broken:_s_:_d
push 8
call fcn.10072f60
add esp, 0x14
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.10055330
push eax
call fcn.1006f040
add esp, 4
test eax, eax
jne 0x10088b3c
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.10055330
push eax
push str._s:repaire_failed
push 8
call fcn.10072f60
add esp, 0xc
jmp 0x10088baa
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.10055330
push eax
push str._s:repaire_sucess
push 8
call fcn.10072f60
add esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10088b68
mov dword [ebp - 0x18], 2
jmp 0x10088b6f
mov dword [ebp - 0x18], 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
or ecx, 1
or ecx, 4
or ecx, 0x10
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.10055330
push eax
call fcn.1006d4b0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10088b9d
jmp 0x10088baa
mov eax, dword [ebp - 8]
jmp 0x10088bbe
cmp dword [ebp - 8], 0
je 0x10088bbc
mov eax, dword [ebp - 8]
push eax
call fcn.1006d9b0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4