Function at 0x503930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5ed284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5f6228], 0
push edi
mov edi, dword [ebp + 8]
je 0x50397f
mov eax, dword [0xa1c670]
mov eax, dword [eax + 0x13c]
test eax, eax
je 0x50397f
push 2
push edi
push eax
call sym.FLAMESLauncher.exe_FDatabaseConnectionDirectoryHasPermissions
add esp, 0xc
test eax, eax
jne 0x503990
push edi
push str.FFileManager_Error:_Failed_adding_dataset_map_file_to_user._Invalid_permissions_to_write_to_directory__s.
push eax
push eax
call sym.FLAMESLauncher.exe_FMHPrintError
add esp, 0x10
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret
push ebx
push str._AA0001
push edi
lea eax, [ebp - 0x10c]
push 0x59f2ac
push eax
call fcn.004f9620
push 1
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [0xa1c670]
push dword [eax + 0x13c]
call fcn.0051c000
add esp, 0x1c
test eax, eax
je 0x503c1d
push str._AA0000
push edi
lea eax, [ebp - 0x10c]
push 0x59f2ac
push eax
call fcn.004f9620
mov ax, word [0x5a1df4]
mov word [ebp - 0x114], ax
mov al, byte [0x5a1df6]
mov byte [ebp - 0x112], al
lea eax, [ebp - 0x10c]
push 0x59f300
push eax
mov eax, dword [0xa1c670]
mov dword [ebp - 0x110], 0
push dword [eax + 0x13c]
call sym.FLAMESLauncher.exe_FDatabaseConnectionOpenFile
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x503c1d
push esi
push ebx
call sym.FLAMESLauncher.exe_FDBOpen
mov esi, eax
add esp, 4
test esi, esi
jne 0x503a4f
lea eax, [ebp - 0x10c]
push eax
push str.FFileManager_Error:_Failed_adding_dataset_map_file_to_user._Error_opening_FDB_file__s
jmp 0x503beb
push str.FMFILENAMEREC
push esi
call sym.FLAMESLauncher.exe_FDBSpecifyRecord
add esp, 8
test eax, eax
je 0x503bdf
push str.FMDATASETREC
push esi
call sym.FLAMESLauncher.exe_FDBSpecifyRecord
add esp, 8
test eax, eax
je 0x503bdf
push str.FMGRANTREC
push esi
call sym.FLAMESLauncher.exe_FDBSpecifyRecord
add esp, 8
test eax, eax
je 0x503bdf
push 0
push esi
call sym.FLAMESLauncher.exe_FDBSpecifyRecord
add esp, 8
test eax, eax
je 0x503bdf
push 1
push str.FMFILENAMEREC
push esi
call sym.FLAMESLauncher.exe_FDBWriteProem
add esp, 0xc
test eax, eax
je 0x503bdf
lea eax, [ebp - 0x114]
push eax
push esi
call sym.FLAMESLauncher.exe_FDBWrite
add esp, 8
test eax, eax
je 0x503bdf
push 0
push str.FMDATASETREC
push esi
call sym.FLAMESLauncher.exe_FDBWriteProem
add esp, 0xc
test eax, eax
je 0x503bdf
push 0
push str.FMGRANTREC
push esi
call sym.FLAMESLauncher.exe_FDBWriteProem
add esp, 0xc
test eax, eax
je 0x503bdf
push esi
call sym.FLAMESLauncher.exe_FDBClose
mov eax, dword [0xa1c670]
push 0
push ebx
push dword [eax + 0x13c]
call sym.FLAMESLauncher.exe_FDatabaseConnectionCloseFile
push str._AA0003
push edi
lea eax, [ebp - 0x10c]
push 0x59f2ac
push eax
call fcn.004f9620
push 0x59f300
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [0xa1c670]
push dword [eax + 0x13c]
call sym.FLAMESLauncher.exe_FDatabaseConnectionOpenFile
mov esi, eax
add esp, 0x2c
test esi, esi
jne 0x503b82
lea eax, [ebp - 0x10c]
push eax
push str.FFileManager_Error:_Failed_adding_dataset_format_file_to_user._Error_creating_file__s.
push esi
push esi
call sym.FLAMESLauncher.exe_FMHPrintError
add esp, 0x10
xor eax, eax
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret
push dword [esi]
push 1
push 7
push str.XMLData
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x503bb3
lea eax, [ebp - 0x10c]
push eax
push str.FFileManager_Error:_Failed_writing_to_dataset_format_file__s.
push 0
push 0
call sym.FLAMESLauncher.exe_FMHPrintError
add esp, 0x10
mov eax, dword [0xa1c670]
push 0
push esi
push dword [eax + 0x13c]
call sym.FLAMESLauncher.exe_FDatabaseConnectionCloseFile
add esp, 0xc
mov eax, 1
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10c]
push eax
push str.FFileManager_Error:_Failed_adding_dataset_map_file_to_user._Error_creating_file__s.
push 0
push 0
call sym.FLAMESLauncher.exe_FMHPrintError
mov eax, dword [0xa1c670]
push 1
push ebx
push dword [eax + 0x13c]
call sym.FLAMESLauncher.exe_FDatabaseConnectionCloseFile
add esp, 0x1c
xor eax, eax
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10c]
push eax
push str.FFileManager_Error:_Failed_adding_dataset_map_file_to_user._Error_creating_file__s.
push 0
push 0
call sym.FLAMESLauncher.exe_FMHPrintError
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop ebx
pop edi
call fcn.0052bfb9
mov esp, ebp
pop ebp
ret