Function at 0x42d550
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov ecx, 0x64
push esi
push ebx
mov esi, edx
mov ebp, eax
sub esp, 0x56c
mov dword [esp + 0x48], edx
lea edx, [esp + 0x98]
call fcn.0042d280
mov ebx, eax
lea eax, [esp + 0x84]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 1
mov dword [esp + 4], 0x14
mov dword [esp], eax
call sub.msvcrt.dll_fread
lea eax, [eax + eax*4]
mov dword [esp + 0x64], 0x3f
lea ebx, [ebx + eax*4]
movzx eax, word [esp + 0x8a]
mov word [esp + 0x68], ax
movzx eax, word [esp + 0x8c]
mov word [esp + 0x6a], ax
movzx eax, word [esp + 0x8e]
mov word [esp + 0x6c], ax
movzx eax, word [esp + 0x90]
mov word [esp + 0x6e], ax
movzx eax, word [esp + 0x92]
mov word [esp + 0x70], ax
movzx eax, word [esp + 0x94]
mov word [esp + 0x72], ax
lea eax, [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esi]
mov dword [esp], eax
call sub.libX11_6.dll_XkbAllocGeometry
test eax, eax
je 0x42d635
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x441d30
mov dword [0x44c344], 0
add esp, 0x56c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov ecx, dword [eax + 0x24]
mov dword [esp + 8], 0
mov esi, ecx
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 4], ecx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00422360
mov dword [esi], eax
movzx eax, word [esp + 0x84]
lea edx, [esp + 0x98]
mov ecx, 0x64
mov word [esi + 4], ax
movzx eax, word [esp + 0x86]
mov word [esi + 6], ax
mov eax, ebp
call fcn.0042d280
add eax, ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x98]
mov dword [esp], eax
call fcn.00431618
cmp word [esp + 0x8a], 0
mov dword [esi + 8], eax
je 0x42d754
lea eax, [esp + 0x160]
xor ebx, ebx
mov esi, dword [esp + 0x44]
mov edi, eax
jmp 0x42d6df
movzx eax, word [esp + 0x8a]
add ebx, 1
cmp ebx, eax
jge 0x42d750
lea edx, [esp + 0x98]
mov ecx, 0x64
mov eax, ebp
call fcn.0042d280
mov ecx, 0x400
add esi, eax
mov edx, edi
mov eax, ebp
call fcn.0042d280
add esi, eax
lea eax, [esp + 0x98]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.libX11_6.dll_XkbAddGeomProperty
test eax, eax
jne 0x42d6d0
mov ebx, esi
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x441d30
mov dword [0x44c344], 0
add esp, 0x56c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x44], esi
cmp word [esp + 0x8c], 0
je 0x42d7b8
xor ebx, ebx
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x44]
jmp 0x42d77f
movzx eax, word [esp + 0x8c]
add ebx, 1
cmp ebx, eax
jge 0x42d7b4
lea edx, [esp + 0x98]
mov ecx, 0x64
mov eax, ebp
call fcn.0042d280
add esi, eax
lea eax, [esp + 0x98]
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.libX11_6.dll_XkbAddGeomColor
test eax, eax
jne 0x42d770
jmp 0x42d723
mov dword [esp + 0x44], esi
mov ecx, dword [esp + 0x30]
movzx edx, byte [esp + 0x88]
cmp word [esp + 0x8e], 0
mov eax, dword [ecx + 0x30]
lea edx, [eax + edx*8]
mov dword [ecx + 0x10], edx
movzx edx, byte [esp + 0x89]
lea eax, [eax + edx*8]
mov dword [ecx + 0xc], eax
je 0x42d9fd
lea eax, [esp + 0x160]
mov esi, dword [esp + 0x44]
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x98]
mov ecx, 0x64
mov eax, edi
call fcn.0042d280
add esi, eax
lea eax, [esp + 0x98]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00422360
mov ebx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
lea esi, [esi + eax*4]
movzx eax, byte [esp + 0x160]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.libX11_6.dll_XkbAddGeomShape
test eax, eax
mov ebx, eax
je 0x42deb0
cmp byte [esp + 0x160], 0
mov dword [esp + 0x2c], 0
je 0x42d9ac
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0x74]
mov dword [esp], eax
call sub.msvcrt.dll_fread
lea esi, [esi + eax*4]
movzx eax, byte [esp + 0x74]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.libX11_6.dll_XkbAddGeomOutline
test eax, eax
mov edi, eax
je 0x42deb0
movzx eax, byte [esp + 0x74]
mov word [edi], ax
movzx eax, byte [esp + 0x75]
mov word [edi + 4], ax
cmp byte [esp + 0x74], 0
je 0x42d993
xor ebp, ebp
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xfc]
mov dword [esp], eax
call sub.msvcrt.dll_fread
movzx ecx, word [esp + 0xfc]
lea esi, [esi + eax*4]
mov eax, dword [edi + 8]
mov word [eax + ebp*4], cx
movzx ecx, word [esp + 0xfe]
mov eax, dword [edi + 8]
mov word [eax + ebp*4 + 2], cx
movzx eax, word [esp + 0xfc]
cmp ax, word [ebx + 0x14]
jge 0x42d95d
mov word [ebx + 0x14], ax
cmp ax, word [ebx + 0x18]
jle 0x42d967
mov word [ebx + 0x18], ax
movzx eax, word [esp + 0xfe]
cmp ax, word [ebx + 0x16]
jge 0x42d979
mov word [ebx + 0x16], ax
cmp ax, word [ebx + 0x1a]
jle 0x42d983
mov word [ebx + 0x1a], ax
movzx eax, byte [esp + 0x74]
add ebp, 1
cmp ebp, eax
jl 0x42d902
add dword [esp + 0x2c], 1
movzx eax, byte [esp + 0x160]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jl 0x42d8a2
movzx eax, byte [esp + 0x161]
cmp al, 0xff
je 0x42d9c4
lea edx, [eax + eax*2]
mov eax, dword [ebx + 8]
lea eax, [eax + edx*4]
mov dword [ebx + 0x10], eax
movzx eax, byte [esp + 0x162]
cmp al, 0xff
je 0x42d9dc
lea edx, [eax + eax*2]
mov eax, dword [ebx + 8]
lea eax, [eax + edx*4]
mov dword [ebx + 0xc], eax
add dword [esp + 0x34], 1
movzx eax, word [esp + 0x8e]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jl 0x42d805
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x44], esi
cmp word [esp + 0x90], 0
je 0x42dc2b
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x48]
lea edx, [esp + 0xfc]
mov ecx, 0x64
mov eax, dword [eax]
mov eax, dword [eax]
mov esi, eax
mov dword [esp + 0x3c], eax
mov eax, ebp
call fcn.0042d280
mov ebx, eax
lea eax, [esp + 0xfc]
mov dword [esp], esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call fcn.00422360
mov esi, eax
lea eax, [esp + 0x74]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 1
mov dword [esp + 4], 0x10
mov dword [esp], eax
call sub.msvcrt.dll_fread
shl eax, 4
mov dword [esp + 4], esi
lea eax, [ebx + eax]
mov dword [esp + 0x34], eax
movzx eax, byte [esp + 0x81]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x80]
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 0x7f]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.libX11_6.dll_XkbAddGeomSection
test eax, eax
mov dword [esp + 0x40], eax
je 0x42dbe4
movzx eax, word [esp + 0x74]
mov ecx, dword [esp + 0x40]
mov word [ecx + 6], ax
movzx eax, word [esp + 0x76]
mov word [ecx + 8], ax
movzx eax, word [esp + 0x78]
mov word [ecx + 0xa], ax
movzx eax, word [esp + 0x7a]
mov word [ecx + 0xc], ax
movzx eax, word [esp + 0x7c]
mov word [ecx + 0xe], ax
movzx eax, byte [esp + 0x7e]
mov byte [ecx + 4], al
cmp byte [esp + 0x7f], 0
je 0x42dcaa
mov ebx, dword [esp + 0x34]
xor esi, esi
mov dword [esp + 0x28], esi
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 1
mov dword [esp + 4], 8
mov dword [esp], eax
call sub.msvcrt.dll_fread
lea ebx, [ebx + eax*8]
movzx eax, byte [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.libX11_6.dll_XkbAddGeomRow
test eax, eax
mov edi, eax
je 0x42df3a
movzx eax, word [esp + 0x5c]
mov word [edi], ax
movzx eax, word [esp + 0x5e]
mov word [edi + 2], ax
movzx eax, byte [esp + 0x61]
mov dword [edi + 8], eax
cmp byte [esp + 0x60], 0
je 0x42dc90
xor esi, esi
jmp 0x42dbae
mov edx, dword [esp + 0x160]
add esi, 1
mov dword [eax], edx
movzx edx, word [esp + 0x164]
mov word [eax + 4], dx
movzx edx, byte [esp + 0x166]
mov byte [eax + 6], dl
movzx edx, byte [esp + 0x167]
mov byte [eax + 7], dl
movzx eax, byte [esp + 0x60]
cmp esi, eax
jge 0x42dc90
lea eax, [esp + 0x160]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 1
mov dword [esp + 4], 8
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [esp], edi
lea ebx, [ebx + eax*8]
call sub.libX11_6.dll_XkbAddGeomKey
test eax, eax
jne 0x42db73
mov dword [esp + 0x34], ebx
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x441d40
mov dword [0x44c344], 0
mov ecx, dword [esp + 0x34]
add dword [esp + 0x44], ecx
test ecx, ecx
je 0x42ded2
add dword [esp + 0x4c], 1
movzx eax, word [esp + 0x90]
mov ecx, dword [esp + 0x4c]
cmp ecx, eax
jl 0x42da14
cmp word [esp + 0x92], 0
je 0x42dee7
xor ebx, ebx
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
jmp 0x42dc63
movzx eax, word [esp + 0x92]
add ebx, 1
cmp ebx, eax
jge 0x42dee3
mov eax, dword [edi]
mov ecx, dword [esp + 0x30]
mov dword [esp], 0
mov edx, dword [eax]
mov eax, ebp
call fcn.0042d390
add esi, eax
test eax, eax
jne 0x42dc50
mov ebx, esi
jmp 0x42d628
add dword [esp + 0x28], 1
movzx eax, byte [esp + 0x7f]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jl 0x42db09
mov dword [esp + 0x34], ebx
cmp byte [esp + 0x80], 0
je 0x42dcf4
xor ebx, ebx
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x40]
jmp 0x42dccf
movzx eax, byte [esp + 0x80]
add ebx, 1
cmp ebx, eax
jge 0x42dcf0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov eax, ebp
mov dword [esp], edi
call fcn.0042d390
add esi, eax
test eax, eax
jne 0x42dcc0
mov dword [esp + 0x34], esi
jmp 0x42dc02
mov dword [esp + 0x34], esi
cmp byte [esp + 0x81], 0
je 0x42dc02
mov dword [esp + 0x38], 0
lea esi, [esi]
lea edx, [esp + 0x160]
mov ecx, 0x64
mov eax, ebp
call fcn.0042d280
mov ebx, eax
lea eax, [esp + 0x54]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
lea esi, [ebx + eax*4]
lea eax, [esp + 0x160]
movzx ebx, byte [esp + 0x54]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.00422360
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.libX11_6.dll_XkbAddGeomOverlay
test eax, eax
mov dword [esp + 0x2c], eax
je 0x42de60
cmp byte [esp + 0x54], 0
je 0x42de60
mov dword [esp + 0x28], 0
nop
lea eax, [esp + 0x58]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fread
lea esi, [esi + eax*4]
movzx eax, byte [esp + 0x59]
mov dword [esp + 8], eax
movzx eax, byte [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.libX11_6.dll_XkbAddGeomOverlayRow
test eax, eax
mov edi, eax
je 0x42de90
movzx edx, byte [esp + 0x59]
xor ebx, ebx
test dl, dl
je 0x42de46
lea esi, [esi]
lea edi, [edi]
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 1
mov dword [esp + 4], 8
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, dword [esp + 0x5c]
lea esi, [esi + eax*8]
mov eax, dword [edi + 8]
mov dword [eax + ebx*8], edx
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x60]
mov dword [eax + ebx*8 + 4], edx
movzx eax, byte [esp + 0x59]
add ebx, 1
cmp ebx, eax
mov edx, eax
jl 0x42de00
add dword [esp + 0x28], 1
movzx eax, byte [esp + 0x54]
mov ecx, dword [esp + 0x28]
mov word [edi + 2], dx
cmp ecx, eax
jl 0x42dda0
add dword [esp + 0x34], esi
test esi, esi
je 0x42dc02
add dword [esp + 0x38], 1
movzx eax, byte [esp + 0x81]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jl 0x42dd10
jmp 0x42dc02
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x441d63
mov dword [0x44c344], 0
jmp 0x42de60
mov dword [esp + 0x44], esi
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x441d30
mov dword [0x44c344], 0
mov ebx, dword [esp + 0x44]
add esp, 0x56c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x44], esi
movzx edi, word [esp + 0x94]
mov ebx, dword [esp + 0x44]
test di, di
je 0x42d628
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x40]
test eax, eax
je 0x42d628
movzx esi, di
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 8
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp esi, eax
jne 0x42df61
mov eax, dword [esp + 0x30]
lea ebx, [ebx + esi*8]
mov word [eax + 0x2a], di
jmp 0x42d628
mov dword [esp + 0x34], ebx
mov dword [0x44c348], 0x17
mov dword [0x44b754], 0x441d53
mov dword [0x44c344], 0
jmp 0x42dc02
mov dword [0x44c348], 0x18
mov dword [0x44b754], 0x441d30
mov ebx, 0xffffffff
mov dword [0x44c344], 0
jmp 0x42d628