Function at 0x4948f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x494b98
push esi
push 6
push 1
push str.Type:
call sub.msvcrt.dll_fwrite
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
add esp, 0x10
test eax, eax
jne 0x494950
push esi
push 0xa
push 1
push str._no_name_
call sub.msvcrt.dll_fwrite
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x70]
add esp, 0x10
test eax, eax
jne 0x49496a
mov edx, dword [ebp + 8]
mov eax, dword [edx]
cmp eax, 0xd
ja case.0x494949.0
jmp dword [eax*4 + 0x758c94]
push ecx
push eax
push 0x758b76
push esi
call sub.msvcrt.dll_fprintf
mov edx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [edx + 0x70]
test eax, eax
je 0x49493f
push edx
push eax
push 0x758b7c
push esi
call sub.msvcrt.dll_fprintf
mov edx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [edx]
cmp eax, 0xd
jbe switch.0x00494949
push eax
mov eax, dword [ebp + 8]
mov edi, dword [eax]
push edi
push str._unknown_type__d_
push esi
call sub.msvcrt.dll_fprintf
add esp, 0x10
push esi
push 9
push 1
push str.content:
call sub.msvcrt.dll_fwrite
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
add esp, 0x10
cmp eax, 7
ja case.0x4949b6.5
jmp dword [eax*4 + 0x758ccc]
push esi
push 0xa
push 1
push str._unknown_
call sub.msvcrt.dll_fwrite
add esp, 0x10
push ebx
push ebx
push esi
push 0xa
call sub.msvcrt.dll_fputc
mov edx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [edx + 0x38]
test eax, eax
jne 0x494a20
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x74]
test edi, edi
je 0x494a02
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], 0
test eax, eax
jne 0x494bb0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x494a50
mov edx, dword [ebp + 8]
cmp dword [edx], 5
je 0x494a60
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push ecx
push eax
push str.__base_type:__s
push esi
call sub.msvcrt.dll_fprintf
mov edx, dword [ebp + 8]
add esp, 0x10
mov eax, dword [edx + 0x3c]
test eax, eax
je 0x494a78
push edx
push eax
push str._ns__s_n
push esi
call sub.msvcrt.dll_fprintf
add esp, 0x10
jmp 0x4949e6
mov eax, esi
call fcn.00494690
mov edx, dword [ebp + 8]
cmp dword [edx], 5
jne 0x494a14
nop
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x494a14
sub esp, 0xc
mov edx, esi
push 1
call fcn.004946f0
add esp, 0x10
jmp 0x494a14
push eax
push eax
push esi
push 0xa
call sub.msvcrt.dll_fputc
add esp, 0x10
jmp 0x4949e6
push esi
push 9
push 1
push str._simple_
call sub.msvcrt.dll_fwrite
jmp 0x494996
push esi
push 8
push 1
push str._basic_
call sub.msvcrt.dll_fwrite
jmp 0x494996
push esi
push 6
push 1
push str._all_
call sub.msvcrt.dll_fwrite
jmp 0x494996
push esi
push 9
push 1
push str._choice_
call sub.msvcrt.dll_fwrite
jmp 0x494996
push esi
push 0xb
push 1
push str._sequence_
call sub.msvcrt.dll_fwrite
jmp 0x494996
push esi
push 0xa
push 1
push str._complex_
call sub.msvcrt.dll_fwrite
jmp 0x494996
push esi
push 0xc
push 1
push str._extension_
call sub.msvcrt.dll_fwrite
jmp 0x494996
push esi
push 0xe
push 1
push str._restriction_
call sub.msvcrt.dll_fwrite
jmp 0x494996
push esi
push 5
push 1
push str._ur_
call sub.msvcrt.dll_fwrite
jmp 0x494996
push esi
push 6
push 1
push str._any_
jmp 0x4949c7
push esi
push 8
push 1
push str._basic_
jmp 0x4949c7
push esi
push 9
push 1
push str._simple_
jmp 0x4949c7
push esi
push 8
push 1
push str._mixed_
jmp 0x4949c7
push esi
push 0xa
push 1
push str._element_
jmp 0x4949c7
push esi
push 8
push 1
push str._empty_
jmp 0x4949c7
push esi
push 0xb
push 1
push str.Type:_NULL_n
call sub.msvcrt.dll_fwrite
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push esi
push 0xe
push 1
push str.__attributes:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [edi + 4]
add esp, 0x10
mov dword [ebp - 0x14], 0
test eax, eax
jg 0x494be8
jmp 0x494a02
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [edi + 4], eax
jle 0x494a02
mov eax, dword [edi]
mov edx, dword [ebp - 0x14]
mov ebx, dword [eax + edx*4]
mov eax, dword [ebx]
cmp eax, 0x7d1
je 0x494c80
cmp eax, 0x7d0
je 0x494c60
push esi
push 8
push 1
push str.___use_
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0xc]
add esp, 0x10
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0x38]
sub esp, 0xc
lea eax, [ebp - 0x10]
push ecx
call fcn.00491000
add esp, 0xc
push eax
push str._s_n
push esi
call sub.msvcrt.dll_fprintf
mov eax, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
je 0x494bd5
sub esp, 0xc
push eax
call dword [0x69a2d0]
add esp, 0x10
mov dword [ebp - 0x10], 0
jmp 0x494bd5
push esi
push 0xe
push 1
push str.___reference_
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
jmp 0x494c1f
push esi
push 0x10
push 1
push str.___prohibition_
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
jmp 0x494c1f