Function at 0x41ea70
Capabilities:
Write file on windows

Disassembly:
cmp dword [ecx + 0x18], 0
je 0x41ed3c
push ebp
push edi
mov edi, eax
push esi
push ebx
mov esi, ecx
xor ebp, ebp
sub esp, 0x4c
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x25
mov dword [esp + 4], 1
mov dword [esp], str.static_XkbIndicatorRec_indicators__n
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
mov dword [esp + 4], str.____0x_lx__n_____n
mov dword [esp], edi
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esi + 0x18]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x28], ebp
lea ebx, [eax + 4]
nop
mov dword [esp + 4], 1
movzx eax, byte [ebx + 4]
mov ebp, 0x43ed5f
mov dword [esp], eax
call fcn.00427b30
mov dword [esp + 4], 1
mov dword [esp + 0x30], eax
movzx eax, byte [ebx + 3]
mov dword [esp], eax
call fcn.00428af0
movzx esi, byte [ebx + 2]
mov edi, eax
mov dword [esp + 4], 1
movzx eax, byte [ebx + 1]
mov dword [esp], eax
call fcn.00428af0
mov edx, dword [esp + 0x28]
movzx ecx, byte [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
test edx, edx
mov edx, 0x43eb02
mov dword [esp + 4], str._s_________0x_02x___s__0x_02x___s____s_
cmovne edx, ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ebp
call sub.msvcrt.dll_fprintf
mov dword [esp + 4], 1
mov eax, dword [ebx + 8]
mov dword [esp], eax
call fcn.00429140
mov dword [esp + 0x10], 1
mov edi, eax
movzx eax, word [ebx + 6]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov dword [esp + 8], 0
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
call fcn.004280a0
mov dword [esp + 4], 1
mov esi, eax
movzx eax, byte [ebx + 5]
mov dword [esp], eax
call fcn.00427b30
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.__s___s____s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x41ebfb
mov edx, dword [esp + 0x28]
add edx, 0x14
cmp dword [eax + edx*4 + 4], 1
sbb dword [esp + 0x3c], 0xffffffff
add dword [esp + 0x28], 1
add ebx, 0xc
mov eax, dword [esp + 0x28]
cmp eax, 0x20
jne 0x41eae0
mov edi, dword [esp + 0x2c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str._n_____n__n
mov dword [esp + 0xc], edi
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x41ed2f
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xc
xor ebx, ebx
mov dword [esp + 4], 1
mov dword [esp], str.static_void_n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x2f
mov dword [esp + 4], 1
mov dword [esp], str.initIndicatorNames_DPYTYPE_dpy_XkbDescPtr_xkb__n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], edi
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x43eeb0
call sub.msvcrt.dll_fwrite
mov ebp, dword [esp + 0x38]
jmp 0x41ecb8
add ebx, 1
cmp ebx, 0x20
je 0x41ed0b
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax + ebx*4 + 0x54]
test esi, esi
je 0x41ecb0
mov dword [esp + 8], ebx
mov dword [esp + 4], str.____xkb__names__indicators__2d__t
add ebx, 1
mov dword [esp], edi
call sub.msvcrt.dll_fprintf
mov eax, dword [esp + 0x34]
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004295c0
mov dword [esp + 4], str.GET_ATOM_dpy___s____n
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msvcrt.dll_fprintf
cmp ebx, 0x20
jne 0x41ecb8
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x43eeeb
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
add esp, 0x4c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 1
ret