Function at 0x5242c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test ecx, ecx
jne 0x5242f6
mov eax, dword [0x801448]
test eax, eax
je 0x5242ed
mov eax, dword [eax + 0x14]
test eax, eax
je 0x5242ed
push str.FDLWriteBuffer:_Null_FDL_file_object
call eax
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x100], 0
jne 0x524322
mov eax, dword [0x801448]
test eax, eax
je 0x5242ed
mov eax, dword [eax + 0x14]
test eax, eax
je 0x5242ed
push str.FDLWriteBuffer:_Given_file_not_open
call eax
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ecx + 0x110], 1
je 0x52434e
mov eax, dword [0x801448]
test eax, eax
je 0x5242ed
mov eax, dword [eax + 0x14]
test eax, eax
je 0x5242ed
push str.FDLWriteBuffer:_Given_file_not_open_for_writing
call eax
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x524375
mov eax, dword [0x801448]
test eax, eax
je 0x5242ed
mov eax, dword [eax + 0x14]
test eax, eax
je 0x5242ed
push str.FDLWriteBuffer:_Null_structure_address
call eax
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x108]
test eax, eax
jne 0x5243aa
mov eax, dword [0x801448]
test eax, eax
je 0x5242ed
mov eax, dword [eax + 0x14]
test eax, eax
je 0x5242ed
push str.FDLWriteBuffer:_Prior_call_to_FDLWriteProem_unsuccessful
call eax
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [eax + 0x98], 4
je 0x524531
mov ecx, dword [eax + 0x84]
mov ebx, dword [eax + 0x90]
mov eax, dword [eax + 0x8c]
mov edi, eax
mov edx, dword [ebp + 0x10]
mov dword [ebp + 0xc], ecx
mov ecx, dword [0x801448]
imul edi, edx
mov dword [ebp - 4], eax
cmp dword [ecx + 0x10], edi
jge 0x524407
push 0xc1c
push str.C:Development_flameskernelutil_fdb_fdl.c
push eax
push edx
push dword [ecx + 0xc]
push dword [ecx]
call sym.FLAMESLauncher.exe_MXV01Resize
mov ecx, dword [0x801448]
add esp, 0x18
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
push edi
push esi
mov esi, dword [0x801448]
push dword [esi + 0xc]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test ebx, ebx
jne 0x524438
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x108]
mov ebx, dword [eax + 0x94]
mov eax, dword [eax + 0x88]
mov dword [ebp + 0xc], eax
jmp 0x52443b
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x5244c7
mov ecx, dword [ebp + 0x10]
add ebx, 0x44
nop dword [eax]
test ecx, ecx
jle 0x5244bc
mov eax, ecx
xor edx, edx
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
cmp byte [ebx - 4], 0x42
je 0x5244a9
xor edi, edi
cmp dword [ebx + 4], edi
jbe 0x5244a9
nop
mov eax, dword [ebx]
imul eax, edi
add eax, dword [ebx + 8]
add eax, dword [esi + 0xc]
add eax, edx
lea esi, [eax - 1]
add esi, dword [ebx]
cmp eax, esi
jae 0x524497
mov cl, byte [esi]
mov dl, byte [eax]
mov byte [eax], cl
inc eax
mov byte [esi], dl
dec esi
cmp eax, esi
jb 0x524486
mov edx, dword [ebp - 8]
mov esi, dword [0x801448]
inc edi
cmp edi, dword [ebx + 4]
jb 0x524470
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add edx, ecx
sub eax, 1
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
jne 0x524461
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add ebx, 0x70
sub eax, 1
mov dword [ebp + 0xc], eax
jne 0x524450
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x108]
push dword [ebx + 0x100]
push 1
mov eax, dword [eax + 0x80]
imul eax, dword [ebp + 0x10]
push eax
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
test eax, eax
jne 0x524566
push ebx
push str.FDLWriteBuffer:_Error_writing_to_file__s
push 0x801450
call fcn.004f9620
mov eax, dword [0x801448]
add esp, 0xc
test eax, eax
je 0x5242ed
mov eax, dword [eax + 0x14]
test eax, eax
je 0x5242ed
push 0x801450
call eax
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
xor edi, edi
test ebx, ebx
jle 0x524566
nop word [eax + eax]
push esi
push ecx
call sym.FLAMESLauncher.exe_FDLWrite
add esp, 8
test eax, eax
je 0x5242ed
mov ecx, dword [ebp + 8]
inc edi
mov eax, dword [ecx + 0x108]
add esi, dword [eax + 0x8c]
cmp edi, ebx
jl 0x524540
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret