Function at 0x653790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x766480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push ebx
push 1
mov dword [ebp - 0x214], eax
add eax, 0x17c
push 4
push eax
call edi
mov eax, dword [ebp - 0x214]
push ebx
push 1
add eax, 0x180
push 4
push eax
call edi
mov ecx, dword [ebp - 0x214]
add esp, 0x20
add ecx, 0x1d5
mov edx, ecx
lea edi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x6537f0
sub edx, edi
je 0x6539e9
lea edx, [ebp - 0x108]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x653807
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x653820
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x6539db
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x653846
sub esi, ecx
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x108]
add ecx, esi
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x653860
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x653876
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea eax, [ebp - 0x20d]
push ebx
push 1
sub ecx, edx
inc cl
push 1
push eax
mov byte [ebp - 0x20d], cl
call edi
movzx eax, byte [ebp - 0x20d]
push ebx
push 1
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov ecx, dword [ebp - 0x214]
add esp, 0x20
mov dword [ebp - 0x21c], 0
cmp dword [ecx + 0x2f4], 0
jle 0x6539fd
xor eax, eax
mov dword [ebp - 0x218], eax
mov esi, dword [ecx + 0x2f8]
add esi, eax
push ebx
push 1
lea ecx, [esi + 0x10]
mov eax, dword [esi + 4]
push 2
push ecx
mov dword [ecx], eax
call edi
mov ecx, dword [esi]
add esp, 0x10
mov eax, dword [ecx]
mov dword [esi + 8], eax
cmp eax, ecx
je 0x653963
nop dword [eax]
push ebx
push 1
add eax, 0x10
push 2
push eax
call edi
mov eax, dword [esi + 8]
push ebx
push 1
add eax, 0x14
push 4
push eax
call edi
mov ecx, dword [esi + 8]
add esp, 0x20
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x653946
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x65395c
cmp ecx, dword [eax + 8]
jne 0x65395c
mov dword [esi + 8], eax
mov ecx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x653931
jmp 0x65395c
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x65395c
nop
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x653950
mov dword [esi + 8], eax
cmp eax, dword [esi]
jne 0x653900
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
push ebx
push 1
mov eax, dword [eax + 0x2f8]
add eax, 0x1c
add eax, esi
push 4
push eax
call edi
mov eax, dword [ebp - 0x214]
push ebx
push 1
push 4
mov eax, dword [eax + 0x2f8]
add eax, 0x18
add eax, esi
push eax
call edi
mov eax, dword [ebp - 0x21c]
add esi, 0x20
mov ecx, dword [ebp - 0x214]
inc eax
add esp, 0x20
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], esi
cmp eax, dword [ecx + 0x2f4]
mov eax, esi
jl 0x6538d7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret 8
push 0
push str.Effect_Editor
push 0x712a18
jmp 0x6539f5
push 0
push str.Effect_Editor
push 0x712a30
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006dfb52
mov esp, ebp
pop ebp
ret 8