Function at 0x527e80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5ed284]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
push eax
mov dword [ebp - 0x21c], ecx
add ecx, 0x78
push ecx
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x10c]
push str._s_sa
mov byte [0x801780], 0
push eax
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], ebx
movsd qword [ebp - 0x234], xmm0
mov dword [edx], 0xffffffff
mov dword [ebp - 0x224], ecx
call fcn.004f9620
push dword [0x5ed18c]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open]
lea eax, [ebp - 0x10c]
push 0x502
push eax
call edi
add esp, 0x1c
test eax, eax
jns 0x527f76
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
cmp dword [eax], 0x11
je 0x527f27
call esi
cmp dword [eax], 0xd
jne 0x527ff4
movsd xmm0, qword [ebp - 0x234]
comisd xmm0, xmmword [ebp + 0x10]
ja 0x528016
movsd xmm1, qword [0x5a4d80]
sub esp, 8
addsd xmm0, xmm1
movsd qword [esp], xmm1
movsd qword [ebp - 0x234], xmm0
call sym.FLAMESLauncher.exe_FOSUtilityPauseProcessing
push dword [0x5ed18c]
lea eax, [ebp - 0x10c]
push 0x502
push eax
call edi
add esp, 0x14
test eax, eax
js 0x527f15
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
push eax
call ebx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x220]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call fcn.00528430
lea edx, [ebp - 0x214]
add esp, 0x18
sub edx, eax
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x527fb0
mov esi, dword [ebp - 0x220]
cmp esi, 0x1869f
jne 0x528032
push str.Failed_to_lock_a_database_directory._nToo_many_lock_files_open.
push 0x15d
push str.FSDB
call sym.FLAMESLauncher.exe_FMHAnnounceError
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 0x10
jmp 0x528142
call sym.FLAMESLauncher.exe_FOSUtilityGetErrorMessage
push eax
push str.Failed_to_create_database_file._n_n_s
push 0x136
push str.FSDB
call sym.FLAMESLauncher.exe_FMHPrintError
add esp, 0x10
jmp 0x528142
push str.Time_limit_exceeded_while_waiting_for_an_existing_write_lock_to_clear.
push 0x137
push str.FSDB
call sym.FLAMESLauncher.exe_FMHAnnounceError
add esp, 0xc
jmp 0x528142
inc esi
lea eax, [ebp - 0x214]
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x224]
push str._s_s_d
push eax
call fcn.004f9620
push dword [0x5ed18c]
lea eax, [ebp - 0x214]
push 0x502
push eax
call edi
mov edi, eax
add esp, 0x20
test edi, edi
jns 0x52809d
call sym.FLAMESLauncher.exe_FOSUtilityGetErrorMessage
push eax
push str.Failed_to_create_database_file._n_n_s
push 0x166
push str.FSDB
call sym.FLAMESLauncher.exe_FMHPrintError
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 0x14
jmp 0x528142
push dword [ebp - 0x21c]
call sym.FLAMESLauncher.exe_FRecordArrayGetRecordSize
add esp, 4
cmp eax, 1
jne 0x5280fd
push 5
push str.ADMIN
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
add esp, 0xc
cmp eax, 5
je 0x5280fd
call sym.FLAMESLauncher.exe_FOSUtilityGetErrorMessage
push eax
push str.Failed_to_create_database_file._n_n_s
push 0x167
push str.FSDB
call sym.FLAMESLauncher.exe_FMHPrintError
push edi
call ebx
mov esi, dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea eax, [ebp - 0x214]
push eax
call esi
lea eax, [ebp - 0x10c]
push eax
call esi
jmp 0x52813f
push edi
call ebx
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea eax, [ebp - 0x214]
push eax
call sym.FLAMESLauncher.exe_FOSUtilityGetFileModificationTime
mov ecx, dword [ebp - 0x228]
push esi
push dword [ebp - 0x218]
mov dword [ecx], eax
mov eax, dword [ebp - 0x22c]
push str._s_d
push 0x801780
mov dword [eax], esi
call fcn.004f9620
add esp, 0x1c
mov ecx, dword [ebp - 4]
mov eax, 0x801780
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret