Function at 0x4218e0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
sub eax, 5
cmp eax, 0x12
ja case.0x421905.6
jmp dword [eax*4 + 0x4403c0]
mov dword [esp + 0x14], 0x421060
mov eax, dword [esp + 0x48]
test esi, esi
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
je 0x421b8b
mov dword [esp], ebx
mov dword [esp + 4], 0x2f
call sub.msvcrt.dll_strrchr
lea edx, [eax + 1]
test eax, eax
cmovne ebx, edx
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
lea edi, [eax + 1]
mov dword [esp + 4], 1
mov dword [esp], edi
call fcn.004315e8
test eax, eax
mov dword [esp + 0x1c], eax
je 0x421c00
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov ebx, eax
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
movzx eax, byte [ebx]
mov edi, dword [sym.imp.msvcrt.dll_islower]
test al, al
jne 0x4219a2
jmp 0x4219c8
call dword [sym.imp.msvcrt.dll_toupper]
mov byte [ebx], al
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x4219c8
movsx ebp, al
mov dword [esp], ebp
call edi
test eax, eax
mov dword [esp], ebp
jne 0x421990
call dword [sym.imp.msvcrt.dll_isalnum]
test eax, eax
jne 0x421998
mov byte [ebx], 0x5f
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x4219a2
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x33
mov dword [esp + 4], 1
mov dword [esp], str.__This_file_generated_automatically_by_xkbcomp___n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x13
mov dword [esp + 4], 1
mov dword [esp], str.__DO__NOT_EDIT___n
call sub.msvcrt.dll_fwrite
mov edi, dword [esp + 0x1c]
mov dword [esp + 4], str.ifndef__s_n
mov dword [esp], esi
mov dword [esp + 8], edi
call sub.msvcrt.dll_fprintf
mov dword [esp + 8], edi
mov dword [esp + 4], str.define__s_1_n_n
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x16
mov dword [esp + 4], 1
mov dword [esp], str.ifndef_XKB_IN_SERVER_n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x29
mov dword [esp + 4], 1
mov dword [esp], str.define_GET_ATOM_d_s__tXInternAtom_d_s_0__n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x1a
mov dword [esp + 4], 1
mov dword [esp], str.define_DPYTYPE_tDisplay__n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], esi
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], str.else_n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x2e
mov dword [esp + 4], 1
mov dword [esp], str.define_GET_ATOM_d_s__tMakeAtom_s_strlen_s__1__n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], str.define_DPYTYPE_tchar__n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], esi
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], str.endif_n
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + 9]
mov dword [esp + 4], str.define_NUM_KEYS_t_d_n
mov dword [esp], esi
add eax, 1
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esp + 0x48]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
call eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.endif____s___n
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_fprintf
xor eax, eax
test ebx, ebx
setne al
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x48]
test esi, esi
mov dword [esp + 0x14], 0x420fd0
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
jne 0x42192b
mov dword [0x44c348], 0xf
mov dword [0x44b754], 0x440270
xor eax, eax
mov dword [0x44c344], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0x41f600
jmp 0x421918
mov dword [esp + 0x14], 0x420fc0
jmp 0x421918
mov eax, dword [esp + 0x48]
mov dword [0x44c348], 0xc
mov dword [0x44b754], 0x440270
mov eax, dword [eax]
mov dword [0x44c344], eax
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x16
mov dword [esp + 4], 1
mov dword [esp], str.ifndef_XKB_IN_SERVER_n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x29
mov dword [esp + 4], 1
mov dword [esp], str.define_GET_ATOM_d_s__tXInternAtom_d_s_0__n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x1a
mov dword [esp + 4], 1
mov dword [esp], str.define_DPYTYPE_tDisplay__n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], esi
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], str.else_n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x2e
mov dword [esp + 4], 1
mov dword [esp], str.define_GET_ATOM_d_s__tMakeAtom_s_strlen_s__1__n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], str.define_DPYTYPE_tchar__n
call sub.msvcrt.dll_fwrite
mov dword [esp + 0xc], esi
mov dword [esp + 8], 7
mov dword [esp + 4], 1
mov dword [esp], str.endif_n
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + 9]
mov dword [esp + 4], str.define_NUM_KEYS_t_d_n
mov dword [esp], esi
add eax, 1
mov dword [esp + 8], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esp + 0x48]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
call eax
mov ebx, eax
jmp 0x421b5a