Function at 0x423c40
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x28], eax
je 0x423fa2
mov eax, dword [eax + 0x14]
test eax, eax
je 0x423fa2
mov edx, dword [eax + 4]
test edx, edx
je 0x423fa2
mov edx, dword [esp + 0x28]
cmp byte [eax + 1], 3
mov edx, dword [edx]
mov dword [esp + 0x20], edx
jbe 0x423f7a
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x423c9e
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x423fca
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0xd
mov dword [esp + 4], 1
mov dword [esp], str.xkb_types__n_n
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x5c], 1
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ecx, esi
sbb eax, eax
not eax
and eax, 2
mov dword [esp], eax
mov eax, ebp
call fcn.00423ad0
mov eax, dword [esi + 0x14]
mov dword [esp + 0x2c], 0
cmp byte [eax + 1], 0
mov esi, dword [eax + 4]
je 0x423f16
lea esi, [esi]
lea edi, [edi]
mov edi, dword [esp + 0x20]
mov dword [esp + 8], 2
mov eax, dword [esi + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004295c0
mov dword [esp + 4], str.____type___s___n
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.msvcrt.dll_fprintf
mov dword [esp + 0x10], 2
movzx eax, word [esi + 2]
mov dword [esp + 0xc], eax
movzx eax, byte [esi + 1]
mov dword [esp], edi
xor edi, edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.004280a0
mov dword [esp + 4], str.________modifiers__s__n
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.msvcrt.dll_fprintf
cmp byte [esi + 5], 0
mov ebx, dword [esi + 8]
je 0x423e6b
mov dword [esp + 0x50], ebp
mov ebp, edi
mov dword [esp + 0x10], 2
movzx eax, word [ebx + 8]
mov dword [esp + 0xc], eax
movzx eax, byte [ebx + 7]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004280a0
mov ecx, eax
movzx eax, byte [ebx + 4]
mov dword [esp + 4], str.________map__s__Level_d__n
mov dword [esp + 8], ecx
mov dword [esp + 0x24], ecx
add eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esi + 0xc]
test eax, eax
je 0x423e55
lea edi, [ebp*4]
mov ecx, dword [esp + 0x24]
add eax, edi
cmp byte [eax + 1], 0
jne 0x423df6
cmp word [eax + 2], 0
je 0x423e55
mov eax, dword [esp + 0x50]
mov dword [esp + 8], ecx
mov dword [esp + 4], str.________preserve__s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
add edi, dword [esi + 0xc]
mov dword [esp + 0x10], 2
movzx eax, word [edi + 2]
mov dword [esp + 0xc], eax
movzx eax, byte [edi + 1]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004280a0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], 0x4409bc
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
movzx eax, byte [esi + 5]
add ebp, 1
add ebx, 0xc
cmp eax, ebp
ja 0x423d80
mov ebp, dword [esp + 0x50]
mov edi, dword [esi + 0x14]
test edi, edi
je 0x423ed7
cmp byte [esi + 4], 0
je 0x423ed7
mov eax, esi
mov ebx, 1
mov esi, edi
mov edi, eax
jmp 0x423e92
movzx eax, byte [edi + 4]
lea ecx, [ebx + 1]
cmp eax, ebx
jbe 0x423ed5
mov ebx, ecx
mov eax, dword [esi + ebx*4 - 4]
test eax, eax
je 0x423e85
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 2
mov dword [esp], eax
call fcn.004295c0
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.________level_name_Level_d____s___n
mov dword [esp], ebp
call sub.msvcrt.dll_fprintf
movzx eax, byte [edi + 4]
lea ecx, [ebx + 1]
cmp eax, ebx
ja 0x423e90
mov esi, edi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 7
add esi, 0x18
mov dword [esp + 4], 1
mov dword [esp], str.______n
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x28]
add dword [esp + 0x2c], 1
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 0x14]
movzx eax, byte [eax + 1]
cmp eax, edx
ja 0x423d00
mov eax, dword [esp + 0x60]
test eax, eax
je 0x423f4d
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], 0
mov dword [esp], ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call dword [esp + 0x60]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], str.__n_n
call sub.msvcrt.dll_fwrite
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x44c348], 3
mov dword [0x44b754], 0x44092c
xor eax, eax
mov dword [0x44c344], 0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x44c348], 2
mov dword [0x44b754], 0x44092c
xor eax, eax
mov dword [0x44c344], 0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 2
mov dword [esp], eax
call fcn.004295c0
mov dword [esp + 4], str.xkb_types___s___n_n
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.msvcrt.dll_fprintf
jmp 0x423cbe