Function at 0x52f010
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 0x52f031
test byte [eax + 0x1c], 2
jne 0x52f040
mov eax, dword [eax + 8]
test eax, eax
je 0x52f040
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x52f031
mov eax, dword [ebx]
mov edx, dword [eax + 4]
test byte [edx + 0x1c], 1
jne 0x52f173
mov esi, dword [edx + 4]
test esi, esi
je 0x52f100
test byte [esi + 0x1c], 1
jne 0x52f173
mov edi, dword [esi + 4]
test edi, edi
je 0x52f0c8
test byte [edi + 0x1c], 1
jne 0x52f173
mov ebp, dword [edi + 4]
test ebp, ebp
je 0x52f0b5
test byte [ebp + 0x1c], 1
jne 0x52f173
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x52f0a1
call fcn.005229a0
test al, al
jne 0x52f173
mov ecx, dword [ebp]
test ecx, ecx
je 0x52f0b5
call fcn.005229a0
test al, al
jne 0x52f173
mov ecx, dword [edi]
test ecx, ecx
je 0x52f0c8
call fcn.005229a0
test al, al
jne 0x52f173
mov esi, dword [esi]
test esi, esi
je 0x52f100
test byte [esi + 0x1c], 1
jne 0x52f173
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x52f0ec
call fcn.005229a0
test al, al
jne 0x52f173
mov ecx, dword [esi]
test ecx, ecx
je 0x52f100
call fcn.005229a0
test al, al
jne 0x52f173
nop
lea esi, [esi]
mov edx, dword [edx]
test edx, edx
je 0x52f205
test byte [edx + 0x1c], 1
jne 0x52f173
mov esi, dword [edx + 4]
test esi, esi
je 0x52f13c
test byte [esi + 0x1c], 1
jne 0x52f173
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x52f12d
call fcn.005229a0
test al, al
jne 0x52f173
mov ecx, dword [esi]
test ecx, ecx
je 0x52f13c
call fcn.005229a0
test al, al
jne 0x52f173
mov edx, dword [edx]
test edx, edx
je 0x52f205
test byte [edx + 0x1c], 1
jne 0x52f173
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x52f15c
call fcn.005229a0
test al, al
jne 0x52f173
mov ecx, dword [edx]
test ecx, ecx
je 0x52f205
call fcn.005229a0
test al, al
je 0x52f205
mov eax, dword [ebx + 4]
test eax, eax
je 0x52f21b
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 0x52f205
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 0x52f21b
mov dword [esp], eax
call fcn.004defc0
mov dword [ebx + 4], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x52f231
mov dword [esp], eax
call fcn.004defc0
mov dword [ebx + 8], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x52f247
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 0x52f261
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