Function at 0x42eee0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov ebp, edx
push esi
push ebx
mov ecx, 0x64
sub esp, 0xdc
lea edx, [esp + 0x6c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], 0
call fcn.0042d280
test eax, eax
je 0x42f646
mov ebx, dword [esp + 0x30]
lea edx, [esp + 0x40]
add dword [esp + 0x40], eax
mov eax, ebx
call fcn.0042d150
lea edx, [esp + 0x40]
mov byte [esp + 0x1c], al
mov eax, ebx
call fcn.0042d150
lea edx, [esp + 0x40]
mov byte [esp + 0x20], al
mov eax, ebx
call fcn.0042d150
lea edx, [esp + 0x40]
movzx edi, al
mov eax, ebx
call fcn.0042d150
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x100c
mov dword [esp], ebp
mov byte [esp + 0x3f], al
call sub.libX11_6.dll_XkbAllocNames
test eax, eax
jne 0x42f778
cmp byte [esp + 0x6c], 0
jne 0x42f660
xor ebx, ebx
mov esi, 1
test esi, edi
jne 0x42f594
add ebx, 1
add esi, esi
cmp ebx, 4
jne 0x42ef8b
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf8
mov dword [esp], ebp
call sub.libX11_6.dll_XkbAllocServerMap
test eax, eax
jne 0x42f728
mov dword [esp + 8], 0
mov dword [esp + 4], 7
mov dword [esp], ebp
call sub.libX11_6.dll_XkbAllocClientMap
test eax, eax
jne 0x42f750
mov dword [esp + 4], 0xf8001fff
mov dword [esp], ebp
call sub.libX11_6.dll_XkbAllocControls
test eax, eax
jne 0x42f7a0
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x42f646
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x42f646
cmp byte [ebp + 8], 7
ja 0x42f019
movzx eax, byte [esp + 0x1c]
mov byte [ebp + 8], al
cmp byte [ebp + 9], 7
ja 0x42f027
movzx eax, byte [esp + 0x20]
mov byte [ebp + 9], al
movzx eax, byte [esp + 0x1c]
cmp eax, 7
jbe 0x42f041
movzx edx, byte [ebp + 8]
cmp eax, edx
jae 0x42f041
movzx ebx, byte [esp + 0x1c]
mov byte [ebp + 8], bl
movzx edi, byte [esp + 0x20]
cmp edi, 7
mov dword [esp + 0x38], edi
ja 0x42f69a
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x24], eax
cmp eax, ebx
jg 0x42f3c0
mov dword [esp + 0x1c], eax
mov esi, esi
lea edi, [edi]
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x42f628
shl eax, 2
add dword [esp + 0x40], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x28], eax
movzx eax, byte [esp + 0x4b]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
test al, 0xf
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
je 0x42f1b9
xor edi, edi
mov dword [esp + 0x2c], ebp
mov ebp, edi
bt eax, ebp
jb 0x42f168
mov ebx, dword [esp + ebp*4 + 0x4c]
movzx eax, byte [esp + 0x48]
mov byte [esp + 0x20], al
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x42f705
test ebx, ebx
jne 0x42f440
mov esi, dword [edx + 4]
cmp byte [esp + 0x20], 1
jbe 0x42f13e
lea eax, [esi + 0x18]
mov dword [esp + 0x34], eax
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
test esi, esi
mov dword [eax + ebp*4], esi
je 0x42f705
cmp ebx, dword [esi + 0x10]
je 0x42f4e7
add ebp, 1
cmp ebp, 4
je 0x42f1b0
movzx eax, byte [esp + 0x4b]
bt eax, ebp
jae 0x42f105
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x6c]
mov ecx, 0x64
call fcn.0042d280
test eax, eax
mov esi, eax
je 0x42f105
lea eax, [esp + 0x6c]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00422360
add dword [esp + 0x40], esi
mov ebx, eax
mov dword [esp + ebp*4 + 0x4c], eax
jmp 0x42f109
movzx eax, byte [esp + 0x4b]
mov ebp, dword [esp + 0x2c]
test al, 0x40
je 0x42f4a0
mov ecx, dword [esp + 0x24]
mov ebx, dword [ebp + 0xc]
mov eax, 1
mov edi, dword [esp + 0x1c]
mov edx, ecx
and ecx, 7
sar edx, 3
shl eax, cl
or byte [ebx + edx + 0x34], al
mov eax, dword [ebp + 0x10]
add edi, dword [eax + 0x10]
or byte [edi], 0x20
mov eax, dword [ebp + 0x14]
movzx edx, byte [esp + 0x4a]
mov edi, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
mov byte [eax + edi], dl
movzx eax, byte [esp + 0x49]
mov edx, eax
and edx, 0xf
test dl, dl
movzx esi, dl
je 0x42f580
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx + 1]
cmp esi, ecx
jle 0x42f227
mov byte [edx + 1], al
movzx eax, byte [esp + 0x49]
mov esi, eax
and esi, 0xf
movzx eax, byte [esp + 0x48]
mov dword [esp], ebp
imul esi, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call sub.libX11_6.dll_XkbResizeKeySyms
test eax, eax
je 0x42f646
test esi, esi
je 0x42f6d0
mov edi, dword [esp + 0x30]
lea ebx, [eax + esi*4]
mov dword [esp + 0x20], esi
mov esi, eax
lea edx, [esp + 0x40]
add esi, 4
mov eax, edi
call fcn.0042d200
cmp esi, ebx
mov dword [esi - 4], eax
jne 0x42f260
test byte [esp + 0x4b], 0x10
mov esi, dword [esp + 0x20]
jne 0x42f7d0
movzx eax, byte [esp + 0x49]
test al, 0xf
je 0x42f371
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov edi, dword [esp + 0x28]
shl eax, 3
mov dword [esp + 0x20], eax
jmp 0x42f2d9
mov ecx, dword [edi + ebx*4]
test ecx, ecx
je 0x42f2ec
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x20]
add edx, dword [eax + 0x10]
sub ecx, dword [eax + 4]
sar ecx, 3
imul ecx, ecx, 0xaaaaaaab
mov byte [edx + ebx], cl
movzx eax, byte [esp + 0x49]
add ebx, 1
mov edx, eax
and edx, 0xf
cmp ebx, edx
jge 0x42f380
mov eax, dword [ebp + 0x10]
mov esi, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
movzx eax, byte [eax + esi]
bt eax, ebx
jb 0x42f2a4
mov eax, dword [ebp + 0x14]
movzx esi, byte [esp + 0x48]
mov edx, dword [esp + 0x20]
add edx, dword [eax + 0x10]
mov ecx, esi
imul ecx, ebx
movzx esi, word [edx + 6]
add esi, ecx
cmp byte [esp + 0x48], 1
mov ecx, dword [eax + 0xc]
lea esi, [ecx + esi*4]
jbe 0x42f490
test esi, esi
je 0x42f363
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42f490
mov eax, dword [esi]
mov dword [esp], eax
call fcn.00422660
test al, 1
jne 0x42f600
mov eax, dword [esi]
sub eax, 0xff80
cmp eax, 0x3d
jbe 0x42f505
mov eax, dword [esi + 4]
sub eax, 0xff80
cmp eax, 0x3d
jbe 0x42f505
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x20]
add edx, dword [eax + 0x10]
mov esi, dword [eax + 4]
lea ecx, [esi + 0x18]
mov dword [edi + ebx*4], ecx
jmp 0x42f2b5
mov edi, dword [esp + 0x1c]
lea ebx, [edi*8]
mov dword [esp + 0x20], ebx
mov edx, dword [ebp + 0x14]
mov edi, dword [esp + 0x20]
test byte [esp + 0x4b], 0x20
mov edx, dword [edx + 0x10]
mov byte [edx + edi + 4], al
mov eax, dword [ebp + 0x14]
movzx edx, byte [esp + 0x48]
mov eax, dword [eax + 0x10]
mov byte [eax + edi + 5], dl
jne 0x42f520
add dword [esp + 0x24], 1
add dword [esp + 0x1c], 1
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x38]
jle 0x42f070
movzx ebx, byte [esp + 0x3f]
test ebx, ebx
je 0x42f428
lea esi, [esp + 0x5c]
xor edi, edi
mov dword [esp + 0x1c], ebx
mov ebx, edi
mov edi, esi
mov esi, dword [esp + 0x30]
nop
lea esi, [esi]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], edi
call sub.msvcrt.dll_fread
lea ecx, [eax*4]
add dword [esp + 0x40], ecx
test eax, eax
je 0x42f41f
mov eax, dword [ebp + 0x10]
movzx ecx, byte [esp + 0x5c]
movzx edx, word [esp + 0x5e]
mov eax, dword [eax + 0x24]
mov word [eax + ecx*2], dx
add ebx, 1
cmp dword [esp + 0x1c], ebx
jne 0x42f3e0
mov eax, dword [esp + 0x40]
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [edx + 1]
mov esi, dword [edx + 4]
test eax, eax
je 0x42f12c
cmp dword [esi + 0x10], ebx
je 0x42f4d6
lea edi, [esi + 0x18]
xor ecx, ecx
mov dword [esp + 0x34], edi
mov edx, edi
jmp 0x42f46f
mov edi, edx
add edx, 0x18
cmp dword [edx - 8], ebx
je 0x42f4e0
add ecx, 1
cmp eax, ecx
jne 0x42f465
cmp byte [esp + 0x20], 1
ja 0x42f13a
mov eax, dword [esp + 0x28]
mov dword [eax + ebp*4], esi
jmp 0x42f14d
mov ecx, dword [eax + 4]
jmp 0x42f369
test al, al
jns 0x42f1e8
mov ecx, dword [esp + 0x24]
mov ebx, dword [ebp + 0xc]
mov eax, 1
mov edx, ecx
and ecx, 7
sar edx, 3
shl eax, cl
not eax
and byte [ebx + edx + 0x34], al
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
add ebx, dword [eax + 0x10]
or byte [ebx], 0x20
jmp 0x42f1e8
mov edi, esi
nop
lea esi, [esi]
mov eax, dword [esp + 0x28]
mov dword [eax + ebp*4], edi
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov ecx, ebp
mov eax, dword [eax + 0x10]
add edx, dword [eax + 0x10]
mov eax, 1
shl eax, cl
or byte [edx], al
jmp 0x42f156
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [eax + 4]
add edx, dword [eax + 0x10]
lea ecx, [esi + 0x48]
jmp 0x42f369
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call sub.msvcrt.dll_fread
shl eax, 2
add dword [esp + 0x40], eax
mov eax, dword [ebp + 0x10]
movzx edx, byte [esp + 0x44]
mov edi, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov byte [eax + edi*2], dl
mov eax, dword [ebp + 0x10]
movzx edx, byte [esp + 0x45]
mov eax, dword [eax + 8]
mov byte [eax + edi*2 + 1], dl
mov eax, dword [ebp + 0x10]
add edi, dword [eax + 0x10]
or byte [edi], 0x40
jmp 0x42f3a8
mov ebx, dword [esp + 0x1c]
lea edi, [ebx*8]
mov dword [esp + 0x20], edi
jmp 0x42f380
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x6c]
mov ecx, 0x64
call fcn.0042d280
test eax, eax
je 0x42f646
add dword [esp + 0x40], eax
cmp byte [esp + 0x6c], 0
mov eax, dword [ebp + 0x1c]
je 0x42f5f0
test eax, eax
je 0x42f5f0
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.00422360
mov edx, dword [ebp + 0x1c]
mov dword [edx + ebx*4 + 0xd4], eax
jmp 0x42ef93
mov dword [eax + ebx*4 + 0xd4], 0
jmp 0x42ef93
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.00422660
test al, 2
je 0x42f338
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [eax + 4]
add edx, dword [eax + 0x10]
lea ecx, [esi + 0x30]
jmp 0x42f369
mov dword [0x44c348], 0x18
mov dword [0x44b754], 0x441e41
mov dword [0x44c344], 0
mov eax, 0xffffffff
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x42ef84
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.00422360
mov edx, dword [ebp + 0x1c]
mov dword [edx + 8], eax
mov edx, dword [ebp + 0x1c]
mov dword [edx + 0xf0], eax
jmp 0x42ef84
movzx edx, byte [ebp + 9]
cmp edi, edx
jbe 0x42f053
mov dword [0x44c348], 0x10
mov dword [0x44b754], 0x441e2e
mov eax, 0xffffffff
mov dword [0x44c344], edi
jmp 0x42f64b
test byte [esp + 0x4b], 0x10
je 0x42f284
mov eax, dword [esp + 0x24]
mov dword [esp + 8], 0
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.libX11_6.dll_XkbResizeKeyActions
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x1c]
add edi, dword [eax + 0x10]
or byte [edi], 0x10
jmp 0x42f284
mov dword [0x44c348], 2
mov dword [0x44b754], 0x441e41
mov dword [0x44c344], 0
jmp 0x42f646
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x441e0f
mov eax, 0xffffffff
mov dword [0x44c344], 0
jmp 0x42f64b
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x441e1a
mov eax, 0xffffffff
mov dword [0x44c344], 0
jmp 0x42f64b
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x441e00
mov eax, 0xffffffff
mov dword [0x44c344], 0
jmp 0x42f64b
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x441e25
mov eax, 0xffffffff
mov dword [0x44c344], 0
jmp 0x42f64b
mov eax, dword [esp + 0x24]
mov dword [esp + 8], esi
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.libX11_6.dll_XkbResizeKeyActions
lea ebx, [eax + esi*8]
mov esi, dword [esp + 0x30]
mov edi, eax
lea esi, [esi]
mov dword [esp], edi
mov dword [esp + 0xc], esi
add edi, 8
mov dword [esp + 8], 1
mov dword [esp + 4], 8
call sub.msvcrt.dll_fread
shl eax, 3
add dword [esp + 0x40], eax
cmp edi, ebx
jne 0x42f7f0
jmp 0x42f6f3