Function at 0x47e790
Capabilities:
Encode data using base64
Load assembly via iassembly
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a895a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 4], eax
push edi
mov dword [esp + 0x14], esi
mov dword [0x4f4e7c], ebx
push str.SUBROM.X1T
mov dword [esp + 0x44], ebx
mov dword [esi], vtable.VM.0
call fcn.004893e0
push eax
call fcn.0048b770
add esp, 8
test al, al
je 0x47e7fd
push str.KBDROM.X1T
call fcn.004893e0
push eax
call fcn.0048b770
add esp, 8
test al, al
je 0x47e7fd
xor eax, eax
jmp 0x47e802
mov eax, 1
mov byte [esi + 0xa0], al
mov ecx, dword [0x8d8208]
mov dword [esi + 0xa4], ecx
mov dword [esi + 0x10], ebx
push 0x9c
mov dword [esi + 0xc], ebx
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 1
je 0x47e89a
mov eax, dword [esi + 4]
push str.Base_Device
lea edx, [edi + 0x1c]
push 0x80
push edx
mov dword [edi + 4], esi
mov dword [edi + 8], eax
mov dword [edi], vtable.DEVICE.0
call fcn.00489320
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x10]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ebx
mov ecx, dword [eax + 0xc]
add esp, 0xc
cmp ecx, ebx
jne 0x47e87f
mov dword [eax + 0xc], edi
mov eax, dword [edi + 4]
mov dword [edi + 0x18], ebx
mov dword [eax + 0x10], edi
mov dword [edi + 0xc], ebx
jmp 0x47e89c
mov edx, dword [eax + 0x10]
mov dword [edx + 0x14], edi
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x18]
inc edx
mov dword [edi + 0x18], edx
mov dword [eax + 0x10], edi
mov dword [edi + 0xc], ebx
jmp 0x47e89c
xor edi, edi
push 0x2068
mov byte [esp + 0x44], bl
mov dword [esi + 8], edi
call fcn.00496f9b
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 2
je 0x47e9a7
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, ebp
call fcn.004819b0
xor eax, eax
mov ecx, 0x300
lea edi, [ebp + 0x1148]
mov dword [ebp], method.KEYBOARD.virtual_0
mov dword [ebp + 0x1ff8], ebx
mov dword [ebp + 0x11c], ebx
mov dword [ebp + 0x1f54], ebx
mov dword [ebp + 0x1f50], ebx
rep stosd dword es:[edi], eax
mov byte [esp + 0x40], 3
xor ecx, ecx
mov byte [eax + ebp + 0x1168], bl
mov dword [eax + ebp + 0x116c], ecx
inc ecx
cmp ecx, 0x40
jge 0x47e921
lea edx, [eax + ebp + 0x1178]
jmp 0x47e923
xor edx, edx
mov dword [eax + ebp + 0x1170], edx
add eax, 0x30
cmp eax, 0xc00
jl 0x47e904
lea ecx, [ebp + 0x1148]
mov dword [ebp + 0x1d48], ecx
mov dword [ebp + 0x1140], ebx
mov dword [ebp + 0x1f58], ebx
mov dword [ebp + 0x1f60], 0xeb851eb8
xor eax, eax
mov dword [ebp + 0x1d4c], ebx
mov dword [ebp + 0x1144], ebx
mov dword [ebp + 0x1f5c], ebx
mov dword [ebp + 0x1f68], ebx
mov dword [ebp + 0x1f64], 0x404ef851
mov dword [ebp + 0x1f6c], 0x102
mov ecx, 0x10
lea edi, [ebp + 0x2020]
push str.Event_Manager
rep stosd dword es:[edi], eax
push ebp
mov dword [ebp + 0x2060], ebx
call fcn.004227e0
add esp, 8
jmp 0x47e9a9
xor ebp, ebp
push 0xc60
mov byte [esp + 0x44], bl
mov dword [esi + 0x14], ebp
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 4
mov ebp, 0x400
je 0x47ea62
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
lea edx, [edi + 0x85c]
push 0x4ae02c
push edx
mov byte [esp + 0x48], 5
mov dword [edi], vtable.DATAREC.0
mov dword [edi + 0x9c], ebx
mov dword [edi + 0x1a0], ebx
mov dword [edi + 0x2a4], ebx
mov dword [edi + 0x3a8], ebx
mov dword [edi + 0x4ac], ebx
mov dword [edi + 0x5b0], ebx
mov dword [edi + 0x6b4], ebx
mov dword [edi + 0x6b8], ebx
mov dword [edi + 0x6bc], ebx
mov dword [edi + 0x848], 0x1f40
mov dword [edi + 0x858], ebp
mov dword [edi + 0x854], ebp
call fcn.00489350
add esp, 8
push str.Data_Recorder
push edi
mov dword [edi + 0xc5c], ebx
call fcn.004227e0
add esp, 8
jmp 0x47ea64
xor edi, edi
push 0xc8
mov byte [esp + 0x44], bl
mov dword [esi + 0x18], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 6
je 0x47ead8
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Noise_Player
push edi
mov byte [esp + 0x48], 7
mov dword [edi], vtable.NOISE.0
mov dword [edi + 0xa0], ebx
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xc0], ebp
mov dword [edi + 0xbc], ebp
mov byte [edi + 0xc4], bl
mov byte [edi + 0xc5], bl
call fcn.004227e0
add esp, 8
jmp 0x47eada
xor edi, edi
mov eax, dword [esi + 0x18]
mov byte [esp + 0x40], bl
push 0xc8
mov dword [eax + 0x6b4], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 8
je 0x47eb54
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Noise_Player
push edi
mov byte [esp + 0x48], 9
mov dword [edi], vtable.NOISE.0
mov dword [edi + 0xa0], ebx
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xc0], ebp
mov dword [edi + 0xbc], ebp
mov byte [edi + 0xc4], bl
mov byte [edi + 0xc5], bl
call fcn.004227e0
add esp, 8
jmp 0x47eb56
xor edi, edi
mov eax, dword [esi + 0x18]
mov byte [esp + 0x40], bl
push 0xc8
mov dword [eax + 0x6b8], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0xa
je 0x47ebd0
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Noise_Player
push edi
mov byte [esp + 0x48], 0xb
mov dword [edi], vtable.NOISE.0
mov dword [edi + 0xa0], ebx
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xc0], ebp
mov dword [edi + 0xbc], ebp
mov byte [edi + 0xc4], bl
mov byte [edi + 0xc5], bl
call fcn.004227e0
add esp, 8
jmp 0x47ebd2
xor edi, edi
mov eax, dword [esi + 0x18]
mov byte [esp + 0x40], bl
push 0x528
mov dword [eax + 0x6bc], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0xc
je 0x47ec3a
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.HD46505_CRTC
push edi
mov byte [esp + 0x48], 0xd
mov dword [edi], vtable.HD46505.0
mov dword [edi + 0x9c], ebx
mov dword [edi + 0x1a0], ebx
mov dword [edi + 0x2a4], ebx
mov dword [edi + 0x3a8], ebx
call fcn.004227e0
add esp, 8
jmp 0x47ec3c
xor edi, edi
push 0x3c4
mov byte [esp + 0x44], bl
mov dword [esi + 0x20], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0xe
je 0x47ecaf
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
mov byte [esp + 0x40], 0xf
mov dword [edi], vtable.I8255.0
xor eax, eax
mov dword [eax + edi + 0xa4], ebx
mov byte [eax + edi + 0x9d], bl
mov byte [eax + edi + 0x9c], bl
add eax, 0x10c
cmp eax, 0x324
jl 0x47ec78
push str.8255_PIO
push edi
mov byte [edi + 0x3c0], bl
call fcn.004227e0
add esp, 8
jmp 0x47ecb1
xor edi, edi
push 0xac
mov byte [esp + 0x44], bl
mov dword [esi + 0x24], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x10
je 0x47ed1b
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Generic_I_O_Bus
push edi
mov byte [esp + 0x48], 0x11
mov dword [edi], vtable.IO.0
mov dword [edi + 0xa4], 0x100
mov dword [edi + 0xa8], 8
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xa0], ebx
call fcn.004227e0
add esp, 8
jmp 0x47ed1d
xor edi, edi
mov byte [esp + 0x40], bl
mov dword [esi + 0x28], edi
push 0x4c8
mov dword [edi + 0xa4], 0x10000
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x12
je 0x47edad
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.MB8877_FDC
push edi
mov byte [esp + 0x48], 0x13
mov dword [edi], vtable.MB8877.0
mov dword [edi + 0x9c], ebx
mov dword [edi + 0x1a0], ebx
mov dword [edi + 0x2a4], ebx
mov dword [edi + 0x3a8], ebx
mov dword [edi + 0x3ac], ebx
mov dword [edi + 0x3b0], ebx
mov byte [edi + 0x48c], bl
mov byte [edi + 0x48b], bl
mov byte [edi + 0x4be], bl
mov byte [edi + 0x4bd], bl
call fcn.004227e0
add esp, 8
jmp 0x47edaf
xor edi, edi
push 0xc8
mov byte [esp + 0x44], bl
mov dword [esi + 0x2c], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x14
je 0x47ee23
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Noise_Player
push edi
mov byte [esp + 0x48], 0x15
mov dword [edi], vtable.NOISE.0
mov dword [edi + 0xa0], ebx
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xc0], ebp
mov dword [edi + 0xbc], ebp
mov byte [edi + 0xc4], bl
mov byte [edi + 0xc5], bl
call fcn.004227e0
add esp, 8
jmp 0x47ee25
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [esp + 0x40], bl
push 0xc8
mov dword [eax + 0x3a8], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x16
je 0x47ee9f
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Noise_Player
push edi
mov byte [esp + 0x48], 0x17
mov dword [edi], vtable.NOISE.0
mov dword [edi + 0xa0], ebx
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xc0], ebp
mov dword [edi + 0xbc], ebp
mov byte [edi + 0xc4], bl
mov byte [edi + 0xc5], bl
call fcn.004227e0
add esp, 8
jmp 0x47eea1
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [esp + 0x40], bl
push 0xc8
mov dword [eax + 0x3ac], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x18
je 0x47ef1b
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Noise_Player
push edi
mov byte [esp + 0x48], 0x19
mov dword [edi], vtable.NOISE.0
mov dword [edi + 0xa0], ebx
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xc0], ebp
mov dword [edi + 0xbc], ebp
mov byte [edi + 0xc4], bl
mov byte [edi + 0xc5], bl
call fcn.004227e0
add esp, 8
jmp 0x47ef1d
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [esp + 0x40], bl
push 0xcec
mov dword [eax + 0x3b0], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x1a
je 0x47efb5
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.SCSI_Base_Initiator
push edi
mov byte [esp + 0x48], 0x1b
mov dword [edi], vtable.SCSI_HOST.0
mov dword [edi + 0x9c], ebx
mov dword [edi + 0x1a0], ebx
mov dword [edi + 0x2a4], ebx
mov dword [edi + 0x3a8], ebx
mov dword [edi + 0x4ac], ebx
mov dword [edi + 0x5b0], ebx
mov dword [edi + 0x6b4], ebx
mov dword [edi + 0x7b8], ebx
mov dword [edi + 0x8bc], ebx
mov dword [edi + 0x9c0], ebx
mov dword [edi + 0xac4], ebx
mov dword [edi + 0xbc8], ebx
call fcn.004227e0
add esp, 8
jmp 0x47efb7
xor edi, edi
mov dword [esi + 0x38], edi
mov byte [esp + 0x40], bl
xor edi, edi
mov ebp, 0x30
push 0x1000
call fcn.00496f9b
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0x40], 0x1c
je 0x47f00e
mov edx, dword [esi + 4]
push edx
push esi
mov ecx, eax
call fcn.004833e0
mov eax, dword [esp + 0x48]
push str.SASI_Hard_Disk_Drive
mov byte [esp + 0x44], 0x1d
push eax
mov dword [eax], vtable.SASI_HDD.0
call fcn.004227e0
mov eax, dword [esp + 0x50]
add esp, 8
jmp 0x47f010
xor eax, eax
mov byte [esp + 0x40], bl
mov dword [esi + ebp], eax
lea eax, [edi + 1]
push eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + ebp]
push str.SASI_Hard_Disk_Drive__d
push eax
call fcn.004227e0
mov ecx, dword [esi + ebp]
mov dword [ecx + 0x750], edi
mov edx, dword [esi + ebp]
mov dword [edx + 0x740], 0x7bc00
mov eax, dword [esi + ebp]
mov dword [eax + 0x748], ebx
add esp, 0xc
mov dword [eax + 0x74c], ebx
mov eax, dword [esi + 0x38]
push 0xff
mov dword [esp + 0x4c], eax
mov edi, dword [esi + ebp]
mov edx, dword [edi]
push 0x12d
lea ecx, [edi + 0x9c]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x11c]
mov ecx, dword [edi + 0x750]
mov edx, dword [edi]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x48]
push eax
push 0x12d
push ecx
lea eax, [edi + 0x9c]
push eax
mov ecx, edi
call dword [edx + 0x11c]
mov ecx, dword [edi + 0x750]
mov edx, dword [edi]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x48]
push eax
push 0x12e
push ecx
lea eax, [edi + 0x1a0]
push eax
mov ecx, edi
call dword [edx + 0x11c]
mov ecx, dword [edi + 0x750]
mov edx, dword [edi]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x48]
push eax
push 0x12f
push ecx
lea eax, [edi + 0x2a4]
push eax
mov ecx, edi
call dword [edx + 0x11c]
mov ecx, dword [edi + 0x750]
mov edx, dword [edi]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x48]
push eax
push 0x130
push ecx
lea eax, [edi + 0x3a8]
push eax
mov ecx, edi
call dword [edx + 0x11c]
mov ecx, dword [edi + 0x750]
mov edx, dword [edi]
mov eax, 1
shl eax, cl
push eax
mov ecx, dword [esp + 0x4c]
push 0x131
push ecx
lea eax, [edi + 0x4ac]
push eax
mov ecx, edi
call dword [edx + 0x11c]
mov ecx, dword [edi + 0x750]
mov edx, dword [edi]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x48]
push eax
push 0x132
push ecx
lea eax, [edi + 0x5b0]
push eax
mov ecx, edi
call dword [edx + 0x11c]
mov eax, dword [esi + ebp]
mov edi, dword [esi + 0x38]
push 0xff
push 0x12d
mov dword [esp + 0x50], eax
mov edx, dword [edi]
push eax
lea eax, [edi + 0x7b8]
push eax
mov ecx, edi
call dword [edx + 0x11c]
mov eax, dword [esp + 0x48]
mov edx, dword [edi]
push 1
push 0x133
push eax
lea ecx, [edi + 0x8bc]
push ecx
mov ecx, edi
call dword [edx + 0x11c]
mov eax, dword [esp + 0x48]
mov edx, dword [edi]
push 1
push 0x134
push eax
lea ecx, [edi + 0x9c0]
push ecx
mov ecx, edi
call dword [edx + 0x11c]
mov eax, dword [esp + 0x48]
mov edx, dword [edi]
push 1
push 0x135
push eax
lea ecx, [edi + 0xac4]
push ecx
mov ecx, edi
call dword [edx + 0x11c]
mov eax, dword [esp + 0x48]
mov edx, dword [edi]
push 1
push 0x136
push eax
lea ecx, [edi + 0xbc8]
push ecx
mov ecx, edi
call dword [edx + 0x11c]
mov edi, dword [esp + 0x10]
add ebp, 4
cmp ebp, 0x38
jb 0x47efc5
xor ebp, ebp
push 0xa4
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x1e
je 0x47f268
mov eax, dword [esi + 4]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov byte [edi + 0x20], bl
mov edx, dword [0x8ca324]
mov dword [edi + 0x1c], edx
inc dword [0x8ca324]
mov eax, dword [edi + 0x1c]
inc eax
push eax
push str.Hard_Disk_Drive__d
push edi
call fcn.00483390
add esp, 0xc
jmp 0x47f26a
xor edi, edi
mov eax, ebp
mov ecx, ebp
and eax, 1
sar ecx, 1
cmp eax, 8
mov byte [esp + 0x40], bl
mov ecx, dword [esi + ecx*4 + 0x30]
jge 0x47f287
mov dword [ecx + eax*4 + 0x758], edi
inc ebp
cmp ebp, 4
jl 0x47f21d
push 0x2e8
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x1f
je 0x47f35c
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
mov byte [esp + 0x40], 0x20
mov dword [edi], vtable.AY_3_891X.0
xor eax, eax
mov dword [eax + edi + 0xb4], ebx
mov byte [eax + edi + 0xb1], bl
mov byte [eax + edi + 0xb0], bl
add eax, 0x108
cmp eax, 0x210
jl 0x47f2c6
push str.AY_3_8910_PSG
push edi
mov dword [edi + 0xa8], ebx
mov dword [edi + 0xa4], ebx
mov dword [edi + 0x9c], ebx
call fcn.004227e0
mov dword [edi + 0x2e4], 0xffffffff
mov eax, dword [0x4f4e78]
add esp, 8
cmp eax, ebx
je 0x47f35e
mov edx, dword [0x4f4e7c]
mov al, dl
mov dword [edi + 0x2e4], edx
mov ecx, dword [0x4f4e78]
mov byte [esp + 0x48], al
mov eax, dword [0x4f4e74]
cmp dword [eax], ebx
je 0x47f354
cmp dword [eax + 8], ebx
je 0x47f354
mov edx, dword [esp + 0x48]
push 1
and edx, 0xff
push edx
push ecx
call dword [eax + 0x10]
add esp, 0xc
inc dword [0x4f4e7c]
jmp 0x47f35e
xor edi, edi
push 0x9c14
mov byte [esp + 0x44], bl
mov dword [esi + 0x44], edi
call fcn.00496f9b
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x21
je 0x47f470
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, ebp
call fcn.004819b0
xor eax, eax
mov dword [ebp], method.KEYBOARD.virtual_0
mov ecx, 0x82
lea edi, [ebp + 0xac]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x2b4]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x4bc]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x6c4]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x8cc]
rep stosd dword es:[edi], eax
push str.debug.bin
lea eax, [ebp + 0xadc]
push 0x104
push eax
mov byte [esp + 0x4c], 0x22
mov dword [ebp + 0xad8], ebx
mov dword [ebp + 0xad4], ebx
call fcn.00489320
xor eax, eax
mov byte [ebp + 0xbe3], bl
mov byte [ebp + 0xbe2], bl
mov byte [ebp + 0xbe1], bl
mov byte [ebp + 0xbe0], bl
mov byte [ebp + 0xbe4], bl
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa8], ebx
add esp, 0xc
mov ecx, 0x2008
lea edi, [ebp + 0xbe5]
rep stosd dword es:[edi], eax
or eax, 0xffffffff
mov dword [ebp + 0x8c08], ebx
mov ecx, 0x400
lea edi, [ebp + 0x8c0c]
rep stosd dword es:[edi], eax
push str.Debugger
push ebp
mov dword [ebp + 0x9c0c], eax
mov dword [ebp + 0x9c10], ebx
call fcn.004227e0
add esp, 8
jmp 0x47f472
xor ebp, ebp
mov eax, dword [esi + 0x44]
mov byte [esp + 0x40], bl
push 0x240
mov dword [eax + 0x9c], ebp
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x23
je 0x47f4f8
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Z80_CPU
mov dword [edi + 0x1c8], ebx
mov dword [edi + 0x1c0], ebx
push edi
mov byte [esp + 0x48], 0x24
mov dword [edi], vtable.Z80.0
mov dword [edi + 0x1cc], ebx
mov dword [edi + 0x1c4], ebx
mov byte [edi + 0x225], bl
mov byte [edi + 0x224], bl
mov dword [edi + 0xa8], ebx
mov dword [edi + 0xb8], ebx
mov byte [edi + 0x1bc], bl
call fcn.004227e0
add esp, 8
jmp 0x47f4fa
xor edi, edi
push 0x5d8
mov byte [esp + 0x44], bl
mov dword [esi + 0x48], edi
call fcn.00496f9b
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x25
je 0x47f588
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, ebp
call fcn.004819b0
mov ecx, 0x148
xor eax, eax
lea edi, [ebp + 0xa0]
mov dword [ebp], method.KEYBOARD.virtual_0
mov byte [esp + 0x40], 0x26
rep stosd dword es:[edi], eax
mov dword [eax + ebp + 0xe0], ebx
mov dword [eax + ebp + 0xb8], ebx
mov dword [eax + ebp + 0xbc], ebx
mov byte [eax + ebp + 0xb4], bl
add eax, 0x148
cmp eax, 0x520
jl 0x47f544
push str.Z80_CTC
push ebp
mov dword [ebp + 0x5cc], ebx
mov dword [ebp + 0x5c8], ebx
call fcn.004227e0
add esp, 8
jmp 0x47f58a
xor ebp, ebp
push 0xfe0
mov byte [esp + 0x44], bl
mov dword [esi + 0x4c], ebp
call fcn.00496f9b
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x27
je 0x47f665
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, ebp
call fcn.004819b0
xor eax, eax
mov ecx, 0x3cc
lea edi, [ebp + 0xa0]
mov dword [ebp], method.KEYBOARD.virtual_0
rep stosd dword es:[edi], eax
mov byte [esp + 0x40], 0x28
mov dword [esp + 0x48], ebx
xor edi, edi
mov dword [edi + ebp + 0xd8], 5
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, ebp
call fcn.00476970
mov edx, dword [esp + 0x48]
push edx
mov ecx, ebp
call fcn.00476b40
mov dword [edi + ebp + 0x118], ebx
mov dword [edi + ebp + 0x21c], ebx
mov dword [edi + ebp + 0x320], ebx
mov dword [edi + ebp + 0x424], ebx
mov dword [edi + ebp + 0x528], ebx
mov dword [edi + ebp + 0x62c], ebx
mov dword [edi + ebp + 0x730], ebx
mov edx, dword [esp + 0x48]
inc edx
add edi, 0x798
cmp edi, 0xf30
mov dword [esp + 0x48], edx
jl 0x47f5de
push str.Z80_SIO
push ebp
mov dword [ebp + 0xfd4], ebx
mov dword [ebp + 0xfd0], ebx
call fcn.004227e0
add esp, 8
jmp 0x47f667
xor ebp, ebp
cmp dword [esi + 0xa4], 1
mov byte [esp + 0x40], bl
mov dword [esi + 0x50], ebp
jl 0x47f8f2
push 0x3d8
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x29
je 0x47f726
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.YM2151_OPM
push edi
mov byte [esp + 0x48], 0x2a
mov dword [edi], vtable.YM2151.0
mov dword [edi + 0x9c], ebx
mov dword [edi + 0x3b4], ebx
mov dword [edi + 0x1a0], ebx
call fcn.004227e0
mov dword [edi + 0x1b0], 0xffffffff
mov eax, dword [0x4f4e78]
add esp, 8
cmp eax, ebx
je 0x47f728
mov eax, dword [0x4f4e7c]
mov dword [edi + 0x1b0], eax
mov cl, al
mov eax, dword [0x4f4e74]
mov byte [esp + 0x48], cl
cmp dword [eax], ebx
mov ecx, dword [0x4f4e78]
je 0x47f71e
cmp dword [eax + 8], ebx
je 0x47f71e
mov edx, dword [esp + 0x48]
push 5
and edx, 0xff
push edx
push ecx
call dword [eax + 0x10]
add esp, 0xc
inc dword [0x4f4e7c]
jmp 0x47f728
xor edi, edi
push str.YM2151_OPM__CZ_8BS1_1_
push edi
mov byte [esp + 0x48], bl
mov dword [esi + 0x3c], edi
call fcn.004227e0
push 0x9c14
call fcn.00496f9b
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x2b
je 0x47f845
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, ebp
call fcn.004819b0
xor eax, eax
mov dword [ebp], method.KEYBOARD.virtual_0
mov ecx, 0x82
lea edi, [ebp + 0xac]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x2b4]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x4bc]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x6c4]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x8cc]
rep stosd dword es:[edi], eax
push str.debug.bin
lea eax, [ebp + 0xadc]
push 0x104
push eax
mov byte [esp + 0x4c], 0x2c
mov dword [ebp + 0xad8], ebx
mov dword [ebp + 0xad4], ebx
call fcn.00489320
xor eax, eax
mov byte [ebp + 0xbe3], bl
mov byte [ebp + 0xbe2], bl
mov byte [ebp + 0xbe1], bl
mov byte [ebp + 0xbe0], bl
mov byte [ebp + 0xbe4], bl
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa8], ebx
add esp, 0xc
mov ecx, 0x2008
lea edi, [ebp + 0xbe5]
rep stosd dword es:[edi], eax
or eax, 0xffffffff
mov dword [ebp + 0x8c08], ebx
mov ecx, 0x400
lea edi, [ebp + 0x8c0c]
rep stosd dword es:[edi], eax
push str.Debugger
push ebp
mov dword [ebp + 0x9c0c], eax
mov dword [ebp + 0x9c10], ebx
call fcn.004227e0
add esp, 8
jmp 0x47f847
xor ebp, ebp
mov eax, dword [esi + 0x3c]
mov byte [esp + 0x40], bl
push 0x5d8
mov dword [eax + 0x1a0], ebp
call fcn.00496f9b
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x2d
je 0x47f8db
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, ebp
call fcn.004819b0
mov ecx, 0x148
xor eax, eax
lea edi, [ebp + 0xa0]
mov dword [ebp], method.KEYBOARD.virtual_0
mov byte [esp + 0x40], 0x2e
rep stosd dword es:[edi], eax
mov dword [eax + ebp + 0xe0], ebx
mov dword [eax + ebp + 0xb8], ebx
mov dword [eax + ebp + 0xbc], ebx
mov byte [eax + ebp + 0xb4], bl
add eax, 0x148
cmp eax, 0x520
jl 0x47f897
push str.Z80_CTC
push ebp
mov dword [ebp + 0x5cc], ebx
mov dword [ebp + 0x5c8], ebx
call fcn.004227e0
add esp, 8
jmp 0x47f8dd
xor ebp, ebp
push str.Z80_CTC__CZ_8BS1_1_
push ebp
mov byte [esp + 0x48], bl
mov dword [esi + 0x54], ebp
call fcn.004227e0
add esp, 8
cmp dword [esi + 0xa4], 2
jne 0x47fb77
push 0x3d8
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x2f
je 0x47f9ab
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.YM2151_OPM
push edi
mov byte [esp + 0x48], 0x30
mov dword [edi], vtable.YM2151.0
mov dword [edi + 0x9c], ebx
mov dword [edi + 0x3b4], ebx
mov dword [edi + 0x1a0], ebx
call fcn.004227e0
mov dword [edi + 0x1b0], 0xffffffff
mov eax, dword [0x4f4e78]
add esp, 8
cmp eax, ebx
je 0x47f9ad
mov ecx, dword [0x4f4e7c]
mov dword [edi + 0x1b0], ecx
mov eax, dword [0x4f4e74]
mov dl, cl
mov ecx, dword [0x4f4e78]
mov byte [esp + 0x48], dl
cmp dword [eax], ebx
je 0x47f9a3
cmp dword [eax + 8], ebx
je 0x47f9a3
mov edx, dword [esp + 0x48]
push 5
and edx, 0xff
push edx
push ecx
call dword [eax + 0x10]
add esp, 0xc
inc dword [0x4f4e7c]
jmp 0x47f9ad
xor edi, edi
push str.YM2151_OPM__CZ_8BS1_2_
push edi
mov byte [esp + 0x48], bl
mov dword [esi + 0x40], edi
call fcn.004227e0
push 0x9c14
call fcn.00496f9b
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x31
je 0x47faca
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, ebp
call fcn.004819b0
xor eax, eax
mov dword [ebp], method.KEYBOARD.virtual_0
mov ecx, 0x82
lea edi, [ebp + 0xac]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x2b4]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x4bc]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x6c4]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x8cc]
rep stosd dword es:[edi], eax
push str.debug.bin
lea eax, [ebp + 0xadc]
push 0x104
push eax
mov byte [esp + 0x4c], 0x32
mov dword [ebp + 0xad8], ebx
mov dword [ebp + 0xad4], ebx
call fcn.00489320
xor eax, eax
mov byte [ebp + 0xbe3], bl
mov byte [ebp + 0xbe2], bl
mov byte [ebp + 0xbe1], bl
mov byte [ebp + 0xbe0], bl
mov byte [ebp + 0xbe4], bl
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa8], ebx
add esp, 0xc
mov ecx, 0x2008
lea edi, [ebp + 0xbe5]
rep stosd dword es:[edi], eax
or eax, 0xffffffff
mov dword [ebp + 0x8c08], ebx
mov ecx, 0x400
lea edi, [ebp + 0x8c0c]
rep stosd dword es:[edi], eax
push str.Debugger
push ebp
mov dword [ebp + 0x9c0c], eax
mov dword [ebp + 0x9c10], ebx
call fcn.004227e0
add esp, 8
jmp 0x47facc
xor ebp, ebp
mov eax, dword [esi + 0x40]
mov byte [esp + 0x40], bl
push 0x5d8
mov dword [eax + 0x1a0], ebp
call fcn.00496f9b
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x33
je 0x47fb60
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, ebp
call fcn.004819b0
mov ecx, 0x148
xor eax, eax
lea edi, [ebp + 0xa0]
mov dword [ebp], method.KEYBOARD.virtual_0
mov byte [esp + 0x40], 0x34
rep stosd dword es:[edi], eax
mov dword [eax + ebp + 0xe0], ebx
mov dword [eax + ebp + 0xb8], ebx
mov dword [eax + ebp + 0xbc], ebx
mov byte [eax + ebp + 0xb4], bl
add eax, 0x148
cmp eax, 0x520
jl 0x47fb1c
push str.Z80_CTC
push ebp
mov dword [ebp + 0x5cc], ebx
mov dword [ebp + 0x5c8], ebx
call fcn.004227e0
add esp, 8
jmp 0x47fb62
xor ebp, ebp
push str.Z80_CTC__CZ_8BS1_2_
push ebp
mov byte [esp + 0x48], bl
mov dword [esi + 0x58], ebp
call fcn.004227e0
add esp, 8
mov eax, dword [0x8d8214]
cmp eax, ebx
jne 0x47fbe7
push 0x3c0
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x35
je 0x47fbd9
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
mov byte [esp + 0x40], 0x36
mov dword [edi], vtable.PRNFILE.0
mov dword [edi + 0x9c], ebx
mov dword [edi + 0x1a0], ebx
push str.Dummy_Printer_Device
push edi
call fcn.004227e0
add esp, 8
mov byte [esp + 0x40], bl
mov dword [esi + 0x1c], edi
jmp 0x47fc8b
xor edi, edi
mov byte [esp + 0x40], bl
mov dword [esi + 0x1c], edi
jmp 0x47fc8b
cmp eax, 1
jne 0x47fc32
push 0xa7ab4
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x37
je 0x47fbd9
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
mov byte [esp + 0x40], 0x38
mov dword [edi], vtable.MZ1P17.0
mov dword [edi + 0x9c], ebx
mov dword [edi + 0x1a0], ebx
push str.MZ_1P17_Kanji_Thermal_Printer
jmp 0x47fbc4
cmp eax, 3
jne 0x47fc85
push 0xe0
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x39
je 0x47fbd9
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
mov eax, 0x400
mov byte [esp + 0x40], 0x3a
mov dword [edi], vtable.PCM8BIT.0
mov dword [edi + 0xd8], eax
mov dword [edi + 0xd4], eax
push str.8_Bit_PCM_Sound
jmp 0x47fbc4
mov ecx, dword [esi + 8]
mov dword [esi + 0x1c], ecx
push 0x174
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x3b
je 0x47fcf3
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
mov byte [esp + 0x40], 0x3c
mov dword [edi], vtable.Z80DMA.0
mov eax, 0xa8
mov word [eax + edi], bx
add eax, 2
cmp eax, 0x10c
jl 0x47fcc3
push str.Z80_DMA
push edi
mov dword [edi + 0x168], ebx
mov dword [edi + 0x164], ebx
mov dword [edi + 0xa4], ebx
call fcn.004227e0
add esp, 8
jmp 0x47fcf5
xor edi, edi
push 0x9c14
mov byte [esp + 0x44], bl
mov dword [esi + 0x5c], edi
call fcn.00496f9b
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x3d
je 0x47fe07
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, ebp
call fcn.004819b0
xor eax, eax
mov dword [ebp], method.KEYBOARD.virtual_0
mov ecx, 0x82
lea edi, [ebp + 0xac]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x2b4]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x4bc]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x6c4]
rep stosd dword es:[edi], eax
push str.debug.bin
lea edx, [ebp + 0xadc]
mov ecx, 0x82
lea edi, [ebp + 0x8cc]
rep stosd dword es:[edi], eax
push 0x104
push edx
mov byte [esp + 0x4c], 0x3e
mov dword [ebp + 0xad8], ebx
mov dword [ebp + 0xad4], ebx
call fcn.00489320
xor eax, eax
mov byte [ebp + 0xbe3], bl
mov byte [ebp + 0xbe2], bl
mov byte [ebp + 0xbe1], bl
mov byte [ebp + 0xbe0], bl
mov byte [ebp + 0xbe4], bl
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa8], ebx
add esp, 0xc
mov ecx, 0x2008
lea edi, [ebp + 0xbe5]
rep stosd dword es:[edi], eax
or eax, 0xffffffff
mov dword [ebp + 0x8c08], ebx
mov ecx, 0x400
lea edi, [ebp + 0x8c0c]
rep stosd dword es:[edi], eax
push str.Debugger
push ebp
mov dword [ebp + 0x9c0c], eax
mov dword [ebp + 0x9c10], ebx
call fcn.004227e0
add esp, 8
jmp 0x47fe09
xor ebp, ebp
mov eax, dword [esi + 0x5c]
mov byte [esp + 0x40], bl
push 0x1d533c
mov dword [eax + 0xa4], ebp
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x3f
je 0x47fe59
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push 0x4ba840
mov byte [esp + 0x44], 0x40
push edi
mov dword [edi], vtable.DISPLAY.0
call fcn.004227e0
add esp, 8
jmp 0x47fe5b
xor edi, edi
push 0x500a0
mov byte [esp + 0x44], bl
mov dword [esi + 0x60], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x41
je 0x47fea5
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push 0x4ba570
mov byte [esp + 0x44], 0x42
push edi
mov dword [edi], vtable.EMM.0
call fcn.004227e0
add esp, 8
jmp 0x47fea7
xor edi, edi
push 0xac
mov byte [esp + 0x44], bl
mov dword [esi + 0x64], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x43
je 0x47fefd
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Floppy_I_F
push edi
mov byte [esp + 0x48], 0x44
mov dword [edi], vtable.FLOPPY.0
mov dword [edi + 0xa0], ebx
mov byte [edi + 0xa4], bl
call fcn.004227e0
add esp, 8
jmp 0x47feff
xor edi, edi
push 0x180e4
mov byte [esp + 0x44], bl
mov dword [esi + 0x68], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x45
je 0x47ff49
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.I_O_Bus__VRAM_
mov byte [esp + 0x44], 0x46
push edi
mov dword [edi], vtable.IOBUS.0
call fcn.004227e0
add esp, 8
jmp 0x47ff4b
xor edi, edi
push 0xa4
mov byte [esp + 0x44], bl
mov dword [esi + 0x6c], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x47
je 0x47ff95
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Joystick_I_F
mov byte [esp + 0x44], 0x48
push edi
mov dword [edi], vtable.JOYSTICK.0
call fcn.004227e0
add esp, 8
jmp 0x47ff97
xor edi, edi
push 0xa8124
mov byte [esp + 0x44], bl
mov dword [esi + 0x70], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x49
je 0x47ffe1
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Memory_Bus
mov byte [esp + 0x44], 0x4a
push edi
mov dword [edi], vtable.MEMORY.0
call fcn.004227e0
add esp, 8
jmp 0x47ffe3
xor edi, edi
push 0xa4
mov byte [esp + 0x44], bl
mov dword [esi + 0x74], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x4b
je 0x48002d
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Mouse_I_F
mov byte [esp + 0x44], 0x4c
push edi
mov dword [edi], vtable.MOUSE.0
call fcn.004227e0
add esp, 8
jmp 0x48002f
xor edi, edi
push 0xa8
mov byte [esp + 0x44], bl
mov dword [esi + 0x78], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x4d
je 0x480079
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.SASI_I_F
mov byte [esp + 0x44], 0x4e
push edi
mov dword [edi], vtable.SASI.0
call fcn.004227e0
add esp, 8
jmp 0x48007b
xor edi, edi
push 0x500a0
mov byte [esp + 0x44], bl
mov dword [esi + 0x80], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x4f
je 0x4800c8
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.CZ_8RB
mov byte [esp + 0x44], 0x50
push edi
mov dword [edi], vtable.CZ8RB.0
call fcn.004227e0
add esp, 8
jmp 0x4800ca
xor edi, edi
cmp byte [esi + 0xa0], bl
mov byte [esp + 0x40], bl
mov dword [esi + 0x84], edi
je 0x48016d
push 0x208
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x51
je 0x480153
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Pseudo_Sub_System
mov byte [esp + 0x44], 0x52
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xbc], ebx
mov dword [edi + 0xb8], ebx
mov dword [edi + 0xb4], ebx
mov dword [edi + 0xb0], ebx
mov dword [edi + 0xac], ebx
mov dword [edi + 0xa8], ebx
mov byte [edi + 0xc4], bl
push edi
mov dword [edi], vtable.PSUB.0
call fcn.004227e0
add esp, 8
jmp 0x480155
xor edi, edi
mov byte [esp + 0x40], bl
mov dword [esi + 0x7c], edi
mov dword [esi + 0x88], ebx
mov dword [esi + 0x98], ebx
jmp 0x48047c
push 0xc8
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x53
je 0x4801da
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.MCS48_MCU
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xb8], ebx
push edi
mov byte [esp + 0x48], 0x54
mov dword [edi], vtable.MCS48.0
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xa0], ebx
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xbc], ebx
call fcn.004227e0
add esp, 8
jmp 0x4801dc
xor edi, edi
push str.MCS48_MCU__Sub_
push edi
mov byte [esp + 0x48], bl
mov dword [esi + 0x88], edi
call fcn.004227e0
push 0x3c4
call fcn.00496f9b
mov edi, eax
add esp, 0xc
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x55
je 0x48025d
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
mov byte [esp + 0x40], 0x56
mov dword [edi], vtable.I8255.0
xor eax, eax
mov dword [eax + edi + 0xa4], ebx
mov byte [eax + edi + 0x9d], bl
mov byte [eax + edi + 0x9c], bl
add eax, 0x10c
cmp eax, 0x324
jl 0x480226
push str.8255_PIO
push edi
mov byte [edi + 0x3c0], bl
call fcn.004227e0
add esp, 8
jmp 0x48025f
xor edi, edi
push str.8255_PIO__Sub_
push edi
mov byte [esp + 0x48], bl
mov dword [esi + 0x90], edi
call fcn.004227e0
push 0x2f0
call fcn.00496f9b
mov edi, eax
add esp, 0xc
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x57
je 0x480343
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
mov dword [edi + 0x2bc], ebx
mov dword [edi + 0x2b8], ebx
mov dword [edi + 0x2b4], ebx
mov dword [edi + 0x2b0], ebx
mov dword [edi + 0x2ac], ebx
mov dword [edi + 0x2a8], ebx
mov dword [edi + 0x2a4], ebx
mov byte [edi + 0x2c0], bl
push str.uPD1990A_RTC
mov dword [edi + 0x2d0], ebx
push edi
mov byte [esp + 0x48], 0x58
mov dword [edi], vtable.UPD1990A.0
mov dword [edi + 0x9c], ebx
mov dword [edi + 0x1a0], ebx
mov byte [edi + 0x2ca], bl
mov byte [edi + 0x2c9], bl
mov byte [edi + 0x2c8], bl
mov dword [edi + 0x2d4], ebx
mov byte [edi + 0x2dc], 1
mov byte [edi + 0x2da], 1
mov byte [edi + 0x2d9], 1
mov byte [edi + 0x2d8], 1
mov byte [edi + 0x2db], bl
mov dword [edi + 0x2e0], ebx
mov byte [edi + 0x2e4], bl
call fcn.004227e0
add esp, 8
jmp 0x480345
xor edi, edi
push str.uPD1990A_RTC__Sub_
push edi
mov byte [esp + 0x48], bl
mov dword [esi + 0x8c], edi
call fcn.004227e0
push 0xc4
call fcn.00496f9b
mov edi, eax
add esp, 0xc
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x59
je 0x48039d
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.Sub_System
mov byte [esp + 0x44], 0x5a
push edi
mov dword [edi], vtable.SUB.0
call fcn.004227e0
add esp, 8
jmp 0x48039f
xor edi, edi
push 0xc8
mov byte [esp + 0x44], bl
mov dword [esi + 0x94], edi
call fcn.00496f9b
mov edi, eax
add esp, 4
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x5b
je 0x480416
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push str.MCS48_MCU
mov dword [edi + 0xc0], ebx
mov dword [edi + 0xb8], ebx
push edi
mov byte [esp + 0x48], 0x5c
mov dword [edi], vtable.MCS48.0
mov dword [edi + 0xa4], ebx
mov dword [edi + 0xa0], ebx
mov dword [edi + 0x9c], ebx
mov dword [edi + 0xc4], ebx
mov dword [edi + 0xbc], ebx
call fcn.004227e0
add esp, 8
jmp 0x480418
xor edi, edi
push str.MCS48_MCU__Keyboard_
push edi
mov byte [esp + 0x48], bl
mov dword [esi + 0x98], edi
call fcn.004227e0
push 0xa8
call fcn.00496f9b
mov edi, eax
add esp, 0xc
mov dword [esp + 0x48], edi
cmp edi, ebx
mov byte [esp + 0x40], 0x5d
je 0x480470
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, edi
call fcn.004819b0
push 0x4b82f4
mov byte [esp + 0x44], 0x5e
push edi
mov dword [edi], vtable.KEYBOARD.0
call fcn.004227e0
add esp, 8
jmp 0x480472
xor edi, edi
mov byte [esp + 0x40], bl
mov dword [esi + 0x9c], edi
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x14]
push 0x3d0900
push eax
call fcn.00483340
cmp byte [esi + 0xa0], bl
jne 0x480506
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x11c]
mov edi, dword [esi + 0x88]
lea edx, [ecx + 1]
mov dword [eax + 0x11c], edx
mov edx, ecx
shl edx, 4
mov dword [edx + eax + 0x9c], edi
add edx, eax
add ecx, 0xa
shl ecx, 4
mov dword [ecx + eax], 0x5b8d80
mov dword [edx + 0xa8], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x11c]
mov edi, dword [esi + 0x98]
lea edx, [ecx + 1]
mov dword [eax + 0x11c], edx
mov edx, ecx
shl edx, 4
add edx, eax
add ecx, 0xa
mov dword [edx + 0x9c], edi
shl ecx, 4
mov dword [ecx + eax], 0x5b8d80
mov dword [edx + 0xa8], ebx
mov eax, dword [esi + 0xa4]
mov edi, 1
cmp eax, edi
jl 0x480530
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x3c]
mov ebp, dword [ecx + 0x1ff8]
lea eax, [ecx + 0x1ff8]
mov dword [ecx + ebp*4 + 0x1f78], edx
inc dword [eax]
cmp dword [esi + 0xa4], 2
jne 0x480554
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x40]
mov ebp, dword [ecx + 0x1ff8]
lea eax, [ecx + 0x1ff8]
mov dword [ecx + ebp*4 + 0x1f78], edx
inc dword [eax]
cmp dword [0x8d8214], 3
jne 0x480578
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
mov ebp, dword [ecx + 0x1ff8]
lea eax, [ecx + 0x1ff8]
mov dword [ecx + ebp*4 + 0x1f78], edx
inc dword [eax]
mov ecx, dword [esi + 0x14]
mov ebp, dword [ecx + 0x1ff8]
mov edx, dword [esi + 0x44]
mov dword [ecx + ebp*4 + 0x1f78], edx
mov edx, dword [ecx + 0x1ff8]
lea eax, [ecx + 0x1ff8]
inc edx
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov ebp, dword [ecx + 0x1ff8]
mov edx, dword [esi + 0x18]
mov dword [ecx + ebp*4 + 0x1f78], edx
lea eax, [ecx + 0x1ff8]
inc dword [eax]
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + 0x3a8]
mov ecx, dword [esi + 0x14]
mov ebp, dword [ecx + 0x1ff8]
mov dword [ecx + ebp*4 + 0x1f78], edx
mov ebp, dword [ecx + 0x1ff8]
lea eax, [ecx + 0x1ff8]
inc ebp
mov dword [eax], ebp
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx + 0x3ac]
mov ecx, dword [esi + 0x14]
mov ebp, dword [ecx + 0x1ff8]
mov dword [ecx + ebp*4 + 0x1f78], edx
mov edx, dword [ecx + 0x1ff8]
lea eax, [ecx + 0x1ff8]
inc edx
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov ebp, dword [ecx + 0x1ff8]
mov edx, dword [esi + 0x2c]
mov edx, dword [edx + 0x3b0]
mov dword [ecx + ebp*4 + 0x1f78], edx
lea eax, [ecx + 0x1ff8]
inc dword [eax]
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x6b4]
mov ecx, dword [esi + 0x14]
mov ebp, dword [ecx + 0x1ff8]
mov dword [ecx + ebp*4 + 0x1f78], edx
mov ebp, dword [ecx + 0x1ff8]
lea eax, [ecx + 0x1ff8]
inc ebp
mov dword [eax], ebp
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 0x6b8]
mov ecx, dword [esi + 0x14]
mov ebp, dword [ecx + 0x1ff8]
mov dword [ecx + ebp*4 + 0x1f78], edx
mov edx, dword [ecx + 0x1ff8]
lea eax, [ecx + 0x1ff8]
inc edx
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebp, dword [ecx + 0x1ff8]
mov edx, dword [edx + 0x6bc]
lea eax, [ecx + 0x1ff8]
mov dword [ecx + ebp*4 + 0x1f78], edx
inc dword [eax]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 2
push edi
push eax
lea eax, [ecx + 0x9c]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
push edi
push ebx
push eax
lea eax, [ecx + 0x1a0]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
push edi
push 3
push eax
lea eax, [ecx + 0x9c]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
push 0x80
push edi
push eax
lea eax, [ecx + 0x1a0]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
push 4
push edi
push eax
lea eax, [ecx + 0x2a4]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
push ebx
push 0xff
push 0xc9
push eax
lea eax, [ecx + 0xa4]
push eax
call dword [edx + 0x120]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
push ebx
push edi
push ebx
push eax
lea eax, [ecx + 0x2bc]
push eax
call dword [edx + 0x120]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
push ebx
push 0x40
push edi
push eax
lea eax, [ecx + 0x2bc]
push eax
call dword [edx + 0x120]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
push ebx
push 0x60
push ebx
push eax
lea eax, [ecx + 0x2bc]
push eax
call dword [edx + 0x120]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
push ebx
push 0x80
push 0xca
push eax
lea eax, [ecx + 0x2bc]
push eax
call dword [edx + 0x120]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
push edi
push ebx
push eax
lea eax, [ecx + 0x1a0]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
push edi
push ebx
push eax
lea eax, [ecx + 0x9c]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
push edi
push edi
push eax
lea eax, [ecx + 0x1a0]
push eax
call dword [edx + 0x11c]
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
push edi
push 3
push ecx
lea eax, [ecx + 0xe0]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
push edi
push 0xa
push eax
lea eax, [ecx + 0x228]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
push edi
push 0xc
push eax
lea eax, [ecx + 0x228]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
push edi
push 0xb
push eax
lea eax, [ecx + 0x370]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
push edi
push 0xd
push eax
lea eax, [ecx + 0x370]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x4c]
mov ecx, 0x1e8480
mov dword [eax + 0x200], ecx
mov dword [eax + 0x204], ebx
mov eax, dword [esi + 0x4c]
mov dword [eax + 0x348], ecx
mov dword [eax + 0x34c], ebx
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx]
push edi
push ebx
push eax
lea eax, [ecx + 0x8b0]
push eax
call dword [edx + 0x11c]
cmp dword [esi + 0xa4], edi
jl 0x4808c6
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx]
push edi
push 3
push ecx
lea eax, [ecx + 0xe0]
push eax
call dword [edx + 0x11c]
cmp dword [esi + 0xa4], 2
jne 0x4808e5
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx]
push edi
push 3
push ecx
lea eax, [ecx + 0xe0]
push eax
call dword [edx + 0x11c]
mov eax, dword [0x8d8214]
cmp eax, ebx
jne 0x4808f3
mov ecx, dword [esi + 0x1c]
jmp 0x480904
cmp eax, edi
jne 0x48091a
mov ecx, dword [esi + 0x1c]
mov dword [ecx + 0xa7ab0], 3
mov eax, dword [esi + 0x24]
mov edx, dword [ecx]
push 8
push edi
push eax
lea eax, [ecx + 0x9c]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 0x9c], eax
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x5c]
mov dword [ecx + 0xa0], eax
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x60]
mov dword [ecx + 0x9c], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x60]
mov dword [ecx + 0xa0], eax
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x60]
add eax, 0xac
mov dword [ecx + 0x18a8], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x60]
add eax, 0x4ac
mov dword [ecx + 0xa4], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x68]
mov dword [ecx + 0x9c], eax
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x6c]
mov dword [ecx + 0x9c], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x6c]
mov dword [ecx + 0xa0], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x6c]
push 0x9c14
mov dword [ecx + 0xa4], eax
call fcn.00496f9b
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x5f
je 0x480aa7
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, ebp
call fcn.004819b0
xor eax, eax
mov dword [ebp], method.KEYBOARD.virtual_0
mov ecx, 0x82
lea edi, [ebp + 0xac]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x2b4]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x4bc]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x6c4]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x8cc]
rep stosd dword es:[edi], eax
push str.debug.bin
lea ecx, [ebp + 0xadc]
push 0x104
push ecx
mov byte [esp + 0x4c], 0x60
mov dword [ebp + 0xad8], ebx
mov dword [ebp + 0xad4], ebx
call fcn.00489320
xor eax, eax
mov byte [ebp + 0xbe3], bl
mov byte [ebp + 0xbe2], bl
mov byte [ebp + 0xbe1], bl
mov byte [ebp + 0xbe0], bl
mov byte [ebp + 0xbe4], bl
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa8], ebx
add esp, 0xc
mov ecx, 0x2008
lea edi, [ebp + 0xbe5]
rep stosd dword es:[edi], eax
or eax, 0xffffffff
mov dword [ebp + 0x8c08], ebx
mov ecx, 0x400
lea edi, [ebp + 0x8c0c]
rep stosd dword es:[edi], eax
push str.Debugger
push ebp
mov dword [ebp + 0x9c0c], eax
mov dword [ebp + 0x9c10], ebx
call fcn.004227e0
add esp, 8
jmp 0x480aa9
xor ebp, ebp
mov eax, dword [esi + 0x6c]
mov byte [esp + 0x40], bl
mov dword [eax + 0xa8], ebp
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 0x9c], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x74]
mov dword [ecx + 0x9c], eax
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x78]
mov dword [ecx + 0x9c], eax
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x80]
mov dword [ecx + 0x9c], eax
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x80]
mov dword [ecx + 0xa0], eax
cmp byte [esi + 0xa0], bl
je 0x480b50
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push ebx
push eax
lea eax, [ecx + 0x1a0]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push 1
push eax
lea eax, [ecx + 0x3a8]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x7c]
mov dword [ecx + 0xa0], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x7c]
mov dword [ecx + 0xa4], eax
jmp 0x481044
push 0x19c
call fcn.00496f9b
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x61
je 0x480ba3
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, ebp
call fcn.004819b0
mov byte [esp + 0x40], 0x62
xor eax, eax
push str.MCS48_Memory_Bus
mov dword [ebp], method.KEYBOARD.virtual_0
mov ecx, 0x40
lea edi, [ebp + 0x9c]
push ebp
rep stosd dword es:[edi], eax
call fcn.004227e0
add esp, 8
jmp 0x480ba5
xor ebp, ebp
mov eax, dword [esi + 0x88]
mov byte [esp + 0x40], bl
mov dword [eax + 0x9c], ebp
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x88]
push 0x9c14
mov dword [ecx + 0xa0], eax
call fcn.00496f9b
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x63
je 0x480cd2
mov eax, dword [esi + 4]
push eax
push esi
mov ecx, ebp
call fcn.004819b0
xor eax, eax
mov dword [ebp], method.KEYBOARD.virtual_0
mov ecx, 0x82
lea edi, [ebp + 0xac]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x2b4]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x4bc]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x6c4]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x8cc]
rep stosd dword es:[edi], eax
push str.debug.bin
lea ecx, [ebp + 0xadc]
push 0x104
push ecx
mov byte [esp + 0x4c], 0x64
mov dword [ebp + 0xad8], ebx
mov dword [ebp + 0xad4], ebx
call fcn.00489320
xor eax, eax
mov byte [ebp + 0xbe3], bl
mov byte [ebp + 0xbe2], bl
mov byte [ebp + 0xbe1], bl
mov byte [ebp + 0xbe0], bl
mov byte [ebp + 0xbe4], bl
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa8], ebx
add esp, 0xc
mov ecx, 0x2008
lea edi, [ebp + 0xbe5]
rep stosd dword es:[edi], eax
or eax, 0xffffffff
mov dword [ebp + 0x8c08], ebx
mov ecx, 0x400
lea edi, [ebp + 0x8c0c]
rep stosd dword es:[edi], eax
push str.Debugger
push ebp
mov dword [ebp + 0x9c0c], eax
mov dword [ebp + 0x9c10], ebx
call fcn.004227e0
add esp, 8
jmp 0x480cd4
xor ebp, ebp
mov eax, dword [esi + 0x88]
push 1
mov byte [esp + 0x44], bl
mov dword [eax + 0xa8], ebp
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push eax
lea eax, [ecx + 0x3a8]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push 2
push eax
lea eax, [ecx + 0x5b0]
push eax
call dword [edx + 0x11c]
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x90]
mov edx, dword [ecx]
push ebx
push 0x80
push ebx
push eax
lea eax, [ecx + 0x2bc]
push eax
call dword [edx + 0x120]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x90]
mov edx, dword [ecx]
push 0xffffffffffffffff
push 2
push 1
push eax
lea eax, [ecx + 0x2bc]
push eax
call dword [edx + 0x120]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x90]
mov edx, dword [ecx]
push 1
push 0x20
push 1
push eax
lea eax, [ecx + 0x2bc]
push eax
call dword [edx + 0x120]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x90]
mov edx, dword [ecx]
push 0xfffffffffffffffe
push 0x80
push 1
push eax
lea eax, [ecx + 0x2bc]
push eax
call dword [edx + 0x120]
mov ecx, dword [esi + 0x90]
mov edx, dword [ecx]
push ebx
push 0x80
push 1
push ecx
lea eax, [ecx + 0x2bc]
push eax
call dword [edx + 0x120]
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x94]
mov dword [ecx + 0x9c], eax
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x94]
mov dword [ecx + 0xa0], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x94]
push 0x19c
mov dword [ecx + 0xa4], eax
call fcn.00496f9b
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x65
je 0x480e9d
mov eax, dword [esi + 4]
push str.Base_Device
mov dword [ebp + 4], esi
lea ecx, [ebp + 0x1c]
push 0x80
mov dword [ebp + 8], eax
push ecx
mov dword [ebp], vtable.DEVICE.0
call fcn.00489320
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x10]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], ebx
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0xc]
add esp, 0xc
cmp ecx, ebx
jne 0x480e56
mov dword [eax + 0xc], ebp
mov dword [ebp + 0x18], ebx
jmp 0x480e69
mov ecx, dword [eax + 0x10]
mov dword [ecx + 0x14], ebp
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x10]
mov ecx, dword [eax + 0x18]
inc ecx
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp + 4]
mov dword [edx + 0x10], ebp
mov dword [ebp + 0xc], ebx
mov byte [esp + 0x40], 0x66
xor eax, eax
push str.MCS48_Memory_Bus
mov dword [ebp], method.KEYBOARD.virtual_0
mov ecx, 0x40
lea edi, [ebp + 0x9c]
push ebp
rep stosd dword es:[edi], eax
call fcn.004227e0
add esp, 8
jmp 0x480e9f
xor ebp, ebp
mov eax, dword [esi + 0x98]
mov byte [esp + 0x40], bl
mov dword [eax + 0x9c], ebp
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x98]
push 0x9c14
mov dword [ecx + 0xa0], eax
call fcn.00496f9b
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x67
je 0x481020
mov eax, dword [esi + 4]
mov dword [ebp + 4], esi
mov dword [ebp + 8], eax
push str.Base_Device
lea eax, [ebp + 0x1c]
push 0x80
push eax
mov dword [ebp], vtable.DEVICE.0
call fcn.00489320
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], ebx
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0xc]
add esp, 0xc
cmp ecx, ebx
jne 0x480f25
mov dword [eax + 0xc], ebp
mov dword [ebp + 0x18], ebx
jmp 0x480f38
mov eax, dword [eax + 0x10]
mov dword [eax + 0x14], ebp
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x18]
inc eax
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 4]
mov dword [ecx + 0x10], ebp
mov dword [ebp + 0xc], ebx
mov byte [esp + 0x40], 0x68
mov dword [ebp], method.KEYBOARD.virtual_0
xor eax, eax
mov ecx, 0x82
lea edi, [ebp + 0xac]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x2b4]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x4bc]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x6c4]
rep stosd dword es:[edi], eax
push str.debug.bin
mov ecx, 0x82
lea edi, [ebp + 0x8cc]
rep stosd dword es:[edi], eax
lea edx, [ebp + 0xadc]
push 0x104
mov dword [ebp + 0xad8], ebx
push edx
mov dword [ebp + 0xad4], ebx
call fcn.00489320
mov byte [ebp + 0xbe3], bl
mov byte [ebp + 0xbe2], bl
mov byte [ebp + 0xbe1], bl
mov byte [ebp + 0xbe0], bl
mov byte [ebp + 0xbe4], bl
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa8], ebx
xor eax, eax
mov ecx, 0x2008
lea edi, [ebp + 0xbe5]
rep stosd dword es:[edi], eax
add esp, 0xc
mov dword [ebp + 0x8c08], ebx
or eax, 0xffffffff
mov ecx, 0x400
lea edi, [ebp + 0x8c0c]
rep stosd dword es:[edi], eax
push str.Debugger
mov dword [ebp + 0x9c0c], eax
push ebp
mov dword [ebp + 0x9c10], ebx
call fcn.004227e0
add esp, 8
jmp 0x481022
xor ebp, ebp
mov eax, dword [esi + 0x98]
mov byte [esp + 0x40], bl
mov dword [eax + 0xa8], ebp
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x9c]
mov dword [ecx + 0x9c], eax
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x48]
mov dword [ecx + 0x9c], eax
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x48]
mov dword [ecx + 0xa0], eax
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x48]
push 0x9c14
mov dword [ecx + 0xa8], eax
call fcn.00496f9b
mov ebp, eax
add esp, 4
mov dword [esp + 0x48], ebp
cmp ebp, ebx
mov byte [esp + 0x40], 0x69
je 0x4811c7
mov eax, dword [esi + 4]
mov dword [ebp + 4], esi
mov dword [ebp + 8], eax
push str.Base_Device
lea eax, [ebp + 0x1c]
push 0x80
push eax
mov dword [ebp], vtable.DEVICE.0
call fcn.00489320
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], ebx
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 0xc]
add esp, 0xc
cmp ecx, ebx
jne 0x4810cc
mov dword [eax + 0xc], ebp
mov dword [ebp + 0x18], ebx
jmp 0x4810df
mov eax, dword [eax + 0x10]
mov dword [eax + 0x14], ebp
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x18]
inc eax
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 4]
mov dword [ecx + 0x10], ebp
mov dword [ebp + 0xc], ebx
mov byte [esp + 0x40], 0x6a
mov dword [ebp], method.KEYBOARD.virtual_0
xor eax, eax
mov ecx, 0x82
lea edi, [ebp + 0xac]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x2b4]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x4bc]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp + 0x6c4]
rep stosd dword es:[edi], eax
push str.debug.bin
mov ecx, 0x82
lea edi, [ebp + 0x8cc]
rep stosd dword es:[edi], eax
lea edx, [ebp + 0xadc]
push 0x104
mov dword [ebp + 0xad8], ebx
push edx
mov dword [ebp + 0xad4], ebx
call fcn.00489320
mov byte [ebp + 0xbe3], bl
mov byte [ebp + 0xbe2], bl
mov byte [ebp + 0xbe1], bl
mov byte [ebp + 0xbe0], bl
mov byte [ebp + 0xbe4], bl
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa8], ebx
xor eax, eax
mov ecx, 0x2008
lea edi, [ebp + 0xbe5]
rep stosd dword es:[edi], eax
add esp, 0xc
mov dword [ebp + 0x8c08], ebx
or eax, 0xffffffff
mov ecx, 0x400
lea edi, [ebp + 0x8c0c]
rep stosd dword es:[edi], eax
push str.Debugger
mov dword [ebp + 0x9c0c], eax
push ebp
mov dword [ebp + 0x9c10], ebx
call fcn.004227e0
add esp, 8
jmp 0x4811c9
xor ebp, ebp
mov eax, dword [esi + 0x48]
mov byte [esp + 0x40], bl
mov dword [eax + 0xac], ebp
mov eax, dword [esi + 0xa4]
xor ecx, ecx
xor edi, edi
cmp eax, 1
jl 0x481209
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x54]
mov dword [ecx + 0xa4], edx
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x48]
mov eax, dword [ecx]
push ebx
push edx
mov edi, 1
call dword [eax + 0x130]
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0xa4]
mov ebp, 2
cmp eax, ebp
jne 0x48124c
cmp ecx, ebx
jne 0x48122a
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x58]
mov dword [eax + 0xa4], ecx
jmp 0x481236
mov eax, dword [esi + 0x58]
mov edx, dword [ecx]
push eax
call dword [edx + 0x134]
mov ecx, dword [esi + 0x58]
mov edx, dword [ecx]
mov eax, edi
push eax
mov eax, dword [esi + 0x48]
push eax
inc edi
call dword [edx + 0x130]
mov ecx, dword [esi + 0x58]
cmp ecx, ebx
jne 0x48125e
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x50]
mov dword [ecx + 0xa4], edx
jmp 0x48126a
mov edx, dword [esi + 0x50]
mov eax, dword [ecx]
push edx
call dword [eax + 0x134]
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx]
mov eax, edi
push eax
mov eax, dword [esi + 0x48]
push eax
inc edi
call dword [edx + 0x130]
mov ecx, dword [esi + 0x50]
cmp ecx, ebx
jne 0x481292
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x5c]
mov dword [ecx + 0xa4], edx
jmp 0x48129e
mov edx, dword [esi + 0x5c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x134]
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx]
mov eax, edi
push eax
mov eax, dword [esi + 0x48]
push eax
inc edi
call dword [edx + 0x130]
mov ecx, dword [esi + 0x5c]
cmp ecx, ebx
jne 0x4812c6
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x4c]
mov dword [ecx + 0xa4], edx
jmp 0x4812d2
mov edx, dword [esi + 0x4c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x134]
mov ecx, dword [esi + 0x4c]
mov edx, dword [ecx]
mov eax, edi
push eax
mov eax, dword [esi + 0x48]
push eax
inc edi
call dword [edx + 0x130]
cmp byte [esi + 0xa0], bl
mov ecx, dword [esi + 0x4c]
je 0x481320
cmp ecx, ebx
jne 0x481302
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x7c]
mov dword [ecx + 0xa4], edx
jmp 0x48130e
mov edx, dword [esi + 0x7c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x134]
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x48]
mov eax, dword [ecx]
push edi
push edx
call dword [eax + 0x130]
jmp 0x481357
cmp ecx, ebx
jne 0x481335
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x94]
mov dword [eax + 0xa4], ecx
jmp 0x481344
mov eax, dword [esi + 0x94]
mov edx, dword [ecx]
push eax
call dword [edx + 0x134]
mov ecx, dword [esi + 0x94]
mov eax, dword [esi + 0x48]
mov edx, dword [ecx]
push edi
push eax
call dword [edx + 0x130]
cmp dword [esi + 0xa4], 1
jl 0x48139e
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x28]
push 0x700
call fcn.00430c60
mov ecx, dword [esi + 0x28]
push ebx
push 0x700
call fcn.00431500
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x28]
push edx
push 0x701
call fcn.00430d40
mov ecx, dword [esi + 0x28]
push ebx
push 0x704
call fcn.004315d0
cmp dword [esi + 0xa4], ebp
jne 0x4813ec
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x28]
push eax
push 0x708
call fcn.00430c60
mov ecx, dword [esi + 0x28]
push ebx
push 0x708
call fcn.00431500
mov ecx, dword [esi + 0x40]
push ecx
mov ecx, dword [esi + 0x28]
push 0x709
call fcn.00430d40
mov edx, dword [esi + 0x58]
mov ecx, dword [esi + 0x28]
push edx
push 0x70f
push 0x70c
call fcn.00431340
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x28]
push eax
push 0xb00
call fcn.00430d40
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x28]
push 0xd03
push 0xd00
call fcn.00431340
mov edx, dword [esi + 0x84]
mov ecx, dword [esi + 0x28]
push edx
push 0xe03
push 0xe00
call fcn.00431340
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x28]
push eax
push 0xe81
push 0xe80
call fcn.00431160
mov ecx, dword [esi + 0x60]
push ecx
mov ecx, dword [esi + 0x28]
push 0xe82
push 0xe80
call fcn.00431250
mov edx, dword [esi + 0x80]
mov ecx, dword [esi + 0x28]
push edx
push 0xfd3
push 0xfd0
call fcn.00431340
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
push eax
push 0xffb
push 0xff8
call fcn.00431340
mov ecx, dword [esi + 0x68]
push ecx
mov ecx, dword [esi + 0x28]
push 0xffc
call fcn.00430c60
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x28]
push edx
push 0xfff
push 0xffc
call fcn.00431160
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x28]
push eax
push 0x17ff
push 0x1000
call fcn.00431340
mov edi, 0x1800
mov ecx, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x28]
lea edx, [edi + 1]
push edx
push edi
call fcn.00431340
add edi, 0x10
cmp edi, 0x18ff
jle 0x4814c9
cmp byte [esi + 0xa0], bl
je 0x4814f3
mov eax, dword [esi + 0x7c]
push eax
jmp 0x4814fa
mov ecx, dword [esi + 0x94]
push ecx
mov ecx, dword [esi + 0x28]
push 0x19ff
push 0x1900
call fcn.00431340
mov edi, 0x1a00
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
push edx
lea eax, [edi + 3]
push eax
push edi
call fcn.00431340
add edi, 4
cmp edi, 0x1aff
jle 0x481511
mov edi, 0x1b00
mov ecx, dword [esi + 0x44]
push 1
push ecx
mov ecx, dword [esi + 0x28]
push edi
call fcn.00430fc0
inc edi
cmp edi, 0x1bff
jle 0x481532
mov edi, 0x1c00
mov edx, dword [esi + 0x44]
mov ecx, dword [esi + 0x28]
push ebx
push edx
push edi
call fcn.00430ee0
inc edi
cmp edi, 0x1cff
jle 0x48154f
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x28]
push eax
push 0x1eff
push 0x1e00
call fcn.00431160
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, dword [esi + 0x28]
push 0x1eff
push 0x1d00
call fcn.00431250
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x28]
push edx
push 0x1f8f
push 0x1f80
call fcn.00431340
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x28]
push eax
push 0x1f93
push 0x1f90
call fcn.00431340
mov ecx, dword [esi + 0x4c]
push ecx
mov ecx, dword [esi + 0x28]
push 0x1fa3
push 0x1fa0
call fcn.00431340
mov edx, dword [esi + 0x60]
mov ecx, dword [esi + 0x28]
push edx
push 0x1fb0
call fcn.00430d40
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x28]
push eax
push 0x1fc5
push 0x1fb9
call fcn.00431340
mov ecx, dword [esi + 0x60]
push ecx
mov ecx, dword [esi + 0x28]
push 0x1fd0
call fcn.00430d40
mov edx, dword [esi + 0x60]
mov ecx, dword [esi + 0x28]
push edx
push 0x1fe0
call fcn.00430d40
mov eax, dword [0x8d8200]
mov ecx, dword [0x8d820c]
and eax, 7
and ecx, 1
shl eax, 1
or eax, ecx
mov ecx, dword [esi + 0x28]
push eax
push 0x1ff0
call fcn.00431500
mov edx, dword [esi + 0x60]
mov ecx, dword [esi + 0x28]
push edx
push 0x3fff
push 0x2000
call fcn.00431340
mov edi, dword [esi + 0xc]
cmp edi, ebx
je 0x48166b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [edi + 0x14]
cmp edi, ebx
jne 0x48165d
cmp byte [esi + 0xa0], bl
jne 0x481743
push str.SUBROM.X1T
call fcn.004893e0
mov ecx, dword [esi + 0x88]
add esp, 4
push eax
call fcn.00439870
push str.KBDROM.X1T
call fcn.004893e0
mov ecx, dword [esi + 0x98]
add esp, 4
push eax
call fcn.00439870
mov ecx, dword [esi + 0x88]
call fcn.00439920
mov edi, eax
push 0x800
push edi
call fcn.00489a70
mov ecx, dword [esi + 0x94]
mov dword [ecx + 0xc0], eax
mov al, byte [edi + 0x23]
add esp, 8
cmp al, 0xb9
jne 0x481743
cmp byte [edi + 0x24], 0x35
jne 0x481743
cmp byte [edi + 0x25], 0xb1
jne 0x481743
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x38], bl
call fcn.00489b90
mov ebp, dword [esp + 0x1c]
mov eax, ebp
cdq
mov ecx, 0x64
idiv ecx
mov eax, 0x66666667
add esp, 4
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ecx, edx
mov eax, ebp
cdq
mov ebp, 0xa
idiv ebp
shl cl, 4
or cl, dl
mov byte [edi + 0x26], cl
xor edi, edi
mov ecx, dword [esi + 0x2c]
push ebx
push edi
call fcn.004353b0
mov ecx, dword [esi + 0x2c]
push 0x12c
push edi
call fcn.004353f0
inc edi
cmp edi, 4
jl 0x481745
xor ebp, ebp
mov edi, 0x8dc54a
cmp byte [edi], bl
je 0x48177b
push edi
call fcn.0048b770
add esp, 4
test al, al
jne 0x48178f
push ebp
push str.SASI_d.DAT
push 0x104
push edi
call fcn.004894d0
add esp, 0x10
add edi, 0x104
inc ebp
cmp edi, 0x8dc95a
jl 0x48176a
mov ecx, dword [0x4f4d5c]
mov eax, dword [ecx]
cmp eax, ebx
je 0x481823
cmp eax, ebx
je 0x4817bd
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x4817bd
call eax
mov ecx, dword [0x4f4d5c]
mov eax, dword [esi + 0x74]
mov edx, dword [ecx]
add eax, 0x8120
cmp edx, ebx
je 0x4817e5
mov edx, dword [ecx + 0x28]
cmp edx, ebx
je 0x4817e5
push 0x10000
push ebx
push eax
push ebx
call edx
mov ecx, dword [0x4f4d5c]
add esp, 0x10
xor ebp, ebp
xor edi, edi
cmp dword [ecx], ebx
mov edx, dword [esi + 0x74]
lea edx, [edx + edi + 0x8120]
je 0x481814
mov eax, dword [ecx + 0x28]
cmp eax, ebx
je 0x481814
push 0x8000
push ebx
push edx
lea ecx, [ebp + 0x10]
push ecx
call eax
mov ecx, dword [0x4f4d5c]
add esp, 0x10
add edi, 0x8000
inc ebp
cmp edi, 0x80000
jl 0x4817e9
mov ecx, dword [esp + 0x38]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4