Function at 0x41ed50
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
test ecx, ecx
je 0x41f0f0
mov edi, dword [ecx + 0x14]
test edi, edi
mov dword [esp + 0x3c], edi
je 0x41f0f0
mov esi, dword [edi + 4]
test esi, esi
je 0x41f0f0
mov edi, dword [esp + 0x3c]
cmp byte [edi + 1], 3
jbe 0x41ef40
mov ebp, eax
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
test eax, eax
je 0x41eda3
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x41f118
mov dword [esp + 0x38], 0
jmp 0x41ee0f
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x41edd7
movzx eax, byte [esi + 4]
mov dword [esp + 4], str.static_Atom_lnames__s__d___n
mov dword [esp], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
mov dword [esp + 4], ebp
mov dword [esp], 0xa
add esi, 0x18
call sub.msvcrt.dll_fputc
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x3c]
add dword [esp + 0x38], 1
mov edx, dword [esp + 0x38]
movzx eax, byte [eax + 1]
cmp eax, edx
jbe 0x41f151
mov dword [esp + 8], 1
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004295c0
mov dword [esp], eax
call fcn.00431618
test eax, eax
mov dword [esp + 0x34], eax
je 0x41f0c5
movzx eax, byte [esi + 5]
test al, al
je 0x41edb0
mov ebx, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], str.static_XkbKTMapEntryRec_map__s__d___n
mov dword [esp], ebp
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
cmp byte [esi + 5], 0
je 0x41ef70
xor edi, edi
mov dword [esp + 0x10], 1
movzx eax, word [ebx + 8]
add edi, 1
mov dword [esp + 8], 0
add ebx, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004280a0
mov dword [esp + 4], 1
mov dword [esp + 0x30], eax
movzx eax, byte [ebx - 5]
mov dword [esp], eax
call fcn.00427b30
mov dword [esp + 4], 1
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx - 6]
mov dword [esp], eax
call fcn.00427b30
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
movzx eax, byte [ebx - 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebx - 0xc]
mov dword [esp + 4], str.______d___6d____15s___15s___15s__
mov dword [esp], ebp
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
movzx eax, byte [esi + 5]
cmp eax, edi
jbe 0x41ef70
test edi, edi
je 0x41ee75
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x43ed5f
call sub.msvcrt.dll_fwrite
jmp 0x41ee75
mov dword [0x44c348], 3
mov dword [0x44b754], 0x43eeee
xor eax, eax
mov dword [0x44c344], 0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
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
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x41edb0
movzx eax, byte [esi + 5]
mov dword [esp + 4], str.static_XkbModsRec_preserve__s__d___n
mov dword [esp], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
cmp byte [esi + 5], 0
mov ebx, dword [esi + 0xc]
je 0x41f0a0
xor edi, edi
lea esi, [esi]
mov dword [esp + 4], 1
movzx eax, byte [ebx]
add edi, 1
add ebx, 4
mov dword [esp], eax
call fcn.00427b30
mov dword [esp + 4], str.________15s_
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.msvcrt.dll_fprintf
mov dword [esp + 4], 1
movzx eax, byte [ebx - 3]
mov dword [esp], eax
call fcn.00427b30
mov dword [esp + 4], 0x43efc9
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.msvcrt.dll_fprintf
mov dword [esp + 0x10], 1
movzx eax, word [ebx - 2]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004280a0
mov dword [esp + 4], str._15s_
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.msvcrt.dll_fprintf
movzx eax, byte [esi + 5]
cmp edi, eax
jae 0x41f0a0
test edi, edi
je 0x41efd0
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x43ed5f
call sub.msvcrt.dll_fwrite
jmp 0x41efd0
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
jmp 0x41edb0
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x43eeee
xor eax, eax
mov dword [0x44c344], 0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x44c348], 2
mov dword [0x44b754], 0x43eeee
xor eax, eax
mov dword [0x44c344], 0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call fcn.004295c0
mov dword [esp + 4], str.__types_name_is___s____n
mov dword [esp + 8], eax
mov dword [esp], ebp
call sub.msvcrt.dll_fprintf
mov eax, dword [esp + 0x3c]
cmp byte [eax + 1], 0
mov esi, dword [eax + 4]
jne 0x41eda3
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x25
xor edi, edi
mov dword [esp + 4], 1
mov dword [esp], str.static_XkbKeyTypeRec_dflt_types____n
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x3c]
cmp byte [eax + 1], 0
mov ebx, dword [eax + 4]
jne 0x41f1f5
jmp 0x41f38a
mov dword [esp + 8], esi
mov dword [esp + 4], str._tmap__s_
mov dword [esp], ebp
call sub.msvcrt.dll_fprintf
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x41f30e
mov dword [esp + 8], esi
mov dword [esp + 4], str._tpreserve__s__n
mov dword [esp], ebp
call sub.msvcrt.dll_fprintf
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41f340
mov dword [esp + 8], esi
mov dword [esp + 4], str._tNone__tlnames__s_n____
mov dword [esp], ebp
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
add edi, 1
add ebx, 0x18
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x3c]
movzx eax, byte [eax + 1]
cmp eax, edi
jbe 0x41f38a
mov dword [esp + 8], 1
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004295c0
mov dword [esp], eax
call fcn.00431618
test eax, eax
mov esi, eax
je 0x41f0c5
test edi, edi
jne 0x41f365
mov dword [esp + 0x10], 1
movzx eax, word [ebx + 2]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004280a0
mov dword [esp + 4], 1
mov dword [esp + 0x30], eax
movzx eax, byte [ebx + 1]
mov dword [esp], eax
call fcn.00427b30
mov dword [esp + 4], 1
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx]
mov dword [esp], eax
call fcn.00427b30
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], str._____n_t__15s___15s___15s___n
mov dword [esp], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
call sub.msvcrt.dll_fprintf
movzx eax, byte [ebx + 4]
mov dword [esp + 4], str._t_d__n
mov dword [esp], ebp
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
movzx eax, byte [ebx + 5]
mov dword [esp + 4], str._t_d_
mov dword [esp], ebp
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
cmp byte [ebx + 5], 0
jne 0x41f185
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], str._tNULL_
call sub.msvcrt.dll_fwrite
mov edx, dword [ebx + 0xc]
test edx, edx
jne 0x41f1a4
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], str._tNULL__n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x41f1c3
lea esi, [esi]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x11
mov dword [esp + 4], 1
mov dword [esp], str._tNone__tNULL_n____
call sub.msvcrt.dll_fwrite
jmp 0x41f1d7
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x43ed5f
call sub.msvcrt.dll_fwrite
jmp 0x41f22a
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
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x42
mov dword [esp + 4], 1
mov dword [esp], str.define_num_dflt_types__sizeof_dflt_types__sizeof_XkbKeyTypeRec___n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0xe
mov dword [esp + 4], 1
mov dword [esp], str._n_nstatic_void_n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.initTypeNames_DPYTYPE_dpy__n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x43eeb0
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], 0
mov eax, dword [eax + 0x14]
cmp byte [eax + 1], 0
mov esi, dword [eax + 4]
je 0x41f548
mov dword [esp + 0x2c], ebp
lea esi, [esi]
mov dword [esp + 8], 1
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004295c0
mov dword [esp], eax
call fcn.00431618
test eax, eax
mov edi, eax
je 0x41f5b2
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x41f575
mov ebp, dword [esi + 0x14]
test ebp, ebp
je 0x41f51d
cmp byte [esi + 4], 0
je 0x41f51d
xor ebx, ebx
mov dword [esp + 0x34], edi
jmp 0x41f4b0
movzx eax, byte [esi + 4]
add ebx, 1
cmp ebx, eax
jae 0x41f519
mov eax, dword [ebp + ebx*4]
test eax, eax
je 0x41f4a5
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], 1
mov dword [esp], eax
call fcn.004295c0
test eax, eax
mov edi, eax
je 0x41f4a5
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], ebx
add ebx, 1
mov dword [esp + 4], str.____lnames__s__d__t
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], edi
mov dword [esp + 4], str.GET_ATOM_dpy___s____n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
movzx eax, byte [esi + 4]
cmp ebx, eax
jb 0x41f4b0
mov edi, dword [esp + 0x34]
mov dword [esp], edi
add esi, 0x18
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x28]
add dword [esp + 0x30], 1
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 0x14]
movzx eax, byte [eax + 1]
cmp ecx, eax
jb 0x41f450
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x43eeeb
call sub.msvcrt.dll_fwrite
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], 1
mov dword [esp], eax
call fcn.004295c0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], str.____dflt_types__d_.name_GET_ATOM_dpy___s____n
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x41f488
mov ebp, dword [esp + 0x2c]
mov dword [esp + 8], 0x28
mov dword [esp + 4], 1
mov dword [esp], str.error_XkbErrBadAlloc_WriteTypeInitFunc_n
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x43f0db
mov dword [esp + 0xc], ebp
mov dword [0x44c344], 0
call sub.msvcrt.dll_fwrite
jmp 0x41f548