Function at 0x524b80
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ecx + 4]
mov dword [ecx], vtable.ed_Image.0
test eax, eax
je 0x524ba1
test byte [eax + 0x1c], 2
jne 0x524bb0
mov eax, dword [eax + 8]
test eax, eax
je 0x524bb0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x524ba1
mov eax, dword [ebx]
mov edx, dword [eax + 4]
test byte [edx + 0x1c], 1
jne 0x524ce3
mov esi, dword [edx + 4]
test esi, esi
je 0x524c70
test byte [esi + 0x1c], 1
jne 0x524ce3
mov edi, dword [esi + 4]
test edi, edi
je 0x524c38
test byte [edi + 0x1c], 1
jne 0x524ce3
mov ebp, dword [edi + 4]
test ebp, ebp
je 0x524c25
test byte [ebp + 0x1c], 1
jne 0x524ce3
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x524c11
call fcn.005229a0
test al, al
jne 0x524ce3
mov ecx, dword [ebp]
test ecx, ecx
je 0x524c25
call fcn.005229a0
test al, al
jne 0x524ce3
mov ecx, dword [edi]
test ecx, ecx
je 0x524c38
call fcn.005229a0
test al, al
jne 0x524ce3
mov esi, dword [esi]
test esi, esi
je 0x524c70
test byte [esi + 0x1c], 1
jne 0x524ce3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x524c5c
call fcn.005229a0
test al, al
jne 0x524ce3
mov ecx, dword [esi]
test ecx, ecx
je 0x524c70
call fcn.005229a0
test al, al
jne 0x524ce3
nop
lea esi, [esi]
mov edx, dword [edx]
test edx, edx
je 0x524d75
test byte [edx + 0x1c], 1
jne 0x524ce3
mov esi, dword [edx + 4]
test esi, esi
je 0x524cac
test byte [esi + 0x1c], 1
jne 0x524ce3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x524c9d
call fcn.005229a0
test al, al
jne 0x524ce3
mov ecx, dword [esi]
test ecx, ecx
je 0x524cac
call fcn.005229a0
test al, al
jne 0x524ce3
mov edx, dword [edx]
test edx, edx
je 0x524d75
test byte [edx + 0x1c], 1
jne 0x524ce3
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x524ccc
call fcn.005229a0
test al, al
jne 0x524ce3
mov ecx, dword [edx]
test ecx, ecx
je 0x524d75
call fcn.005229a0
test al, al
je 0x524d75
mov eax, dword [ebx + 4]
test eax, eax
je 0x524d8b
mov dword [esp], eax
call fcn.00608f30
mov dword [esp + 4], 0x6664ac
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00608a20
test eax, eax
mov esi, eax
je 0x524d75
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x23
mov dword [esp + 4], 1
mov dword [esp], str.__FLTK_preferences_file_format_1.0_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 8]
mov dword [esp + 4], str.__vendor:__s_n
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], str.__application:__s_n
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [esp], esi
call fcn.00522ab0
sub esp, 4
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov eax, dword [ebx + 4]
test eax, eax
je 0x524d8b
mov dword [esp], eax
call fcn.004defc0
mov dword [ebx + 4], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x524da1
mov dword [esp], eax
call fcn.004defc0
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x524db7
mov dword [esp], eax
call fcn.004defc0
mov dword [ebx + 0xc], 0
mov eax, dword [ebx]
mov esi, dword [eax + 4]
test esi, esi
je 0x524dd1
mov ecx, esi
call fcn.005230a0
mov dword [esp], esi
call fcn.00606c40
mov eax, dword [ebx]
mov dword [eax + 4], 0
mov dword [esp], ebx
call fcn.00606c40
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret