Function at 0x45c910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x138
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0xcbf670]
or edx, 0xffffffff
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0xc]
xor eax, eax
cmp ecx, 2
push edi
mov dword [esp + 0x60], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], 0xcbf65c
mov dword [esp + 0x54], eax
mov dword [esp + 0x74], 0xccfaff
mov dword [esp + 0x7c], 0x8bcf84
mov dword [esp + 0x70], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x18], 0xffffd8f0
je 0x45c98b
cmp dword [esi + 0xe4], eax
je 0x45c993
mov dword [esp + 0x74], 0xc2f0eb
cmp dword [esi + 0xf0], eax
jne 0x45c9ad
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x138
ret 4
mov ecx, dword [esi + 0x1df94]
mov dword [esi + 0x1df8c], edx
cmp ecx, eax
mov dword [esi + 0x1df90], edx
je 0x45c9cd
mov dword [0x8f1524], 1
cmp dword [esi + 0xd8], eax
jge 0x45c9db
mov dword [esi + 0xd8], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xd8]
cmp ecx, eax
jle 0x45c9ee
mov dword [esi + 0xd8], eax
mov edi, edx
lea eax, [esi + 0x8de]
movsx ecx, word [eax + 6]
add eax, 6
inc edi
cmp ecx, edx
mov dword [esp + 0x14], ecx
je 0x45c9f6
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x74]
test eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 1
jl 0x45ca26
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov dword [esp + 0x34], ebx
call fcn.0045def0
mov ebp, eax
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x45cb76
cmp ebp, 0x20
jge 0x45cb76
cmp ebp, 6
je 0x45cb76
cmp ebx, dword [esi + 0xd8]
jne 0x45cb76
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x6c], edi
lea eax, [edi + edx]
mov edx, dword [esp + 0x14c]
cmp edx, 1
mov dword [esp + 0x34], eax
jne 0x45cb7d
mov eax, dword [esp + 0x28]
xor ebx, ebx
test eax, eax
je 0x45caa3
lea ecx, [edi + edi*2 + 0x474]
movsx eax, word [esi + ecx*2]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x1df94]
test eax, eax
jge 0x45cae2
mov edx, dword [0x8f1520]
mov eax, dword [esp + 0x4c]
add eax, edx
cmp eax, ecx
mov dword [esi + 0xd8], eax
jl 0x45cad8
dec ecx
mov dword [esi + 0xd8], ecx
mov dword [esi + 0x1df94], 0
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0xa8]
sub eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 0
lea edx, [ebx + ecx]
mov ecx, dword [esi + 0xc0]
lea ecx, [edx + ecx - 1]
mov dx, word [0x8f1964]
push edx
mov edx, dword [esp + 0x38]
lea edx, [eax + edx + 1]
lea eax, [eax + edi - 1]
push edx
push ecx
push eax
push ecx
mov ecx, 0x1d9d5f8
call fcn.004688f0
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xc0]
sub eax, ecx
mov ecx, dword [esp + 0x14]
add ebx, ecx
lea ecx, [ebx + edx]
mov dx, word [0x8f1964]
push edx
mov edx, dword [esp + 0x38]
lea edx, [eax + edx + 1]
lea eax, [eax + edi - 1]
push edx
push ecx
push eax
push ecx
mov ecx, 0x1d9d5f8
call fcn.004688f0
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x64], 1
mov edx, dword [esp + 0x14c]
cmp ebp, 0xe
mov ecx, 1
ja case.0x45cb8b.13
jmp dword [ebp*4 + 0x45de94]
cmp dword [esi + 0xdc], ecx
jne 0x45cd45
mov ecx, dword [esi]
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x24], 0xff
mov ax, word [ecx + edx*2]
mov dword [esp + 0x20], 0
lea ecx, [eax + eax*4]
shl ecx, 4
lea edx, [ecx + esi + 0x2a0]
push edx
push eax
lea eax, [esp + 0x88]
push str._PIC__d____S___
push eax
call fcn.0057aa16
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
add esp, 0x10
inc ecx
xor eax, eax
mov dword [esp + 0x10], ecx
mov ax, word [edx + ecx*2]
cmp eax, 3
ja case.default.0x45cbf4
jmp dword [eax*4 + 0x45ded0]
push str.LEFT_
jmp 0x45cc25
lea ecx, [esp + 0x80]
push str.RIGHT_
push ecx
jmp 0x45cc2d
lea edx, [esp + 0x80]
push str.CENTRE_
push edx
jmp 0x45cc2d
push str.HERE_
lea eax, [esp + 0x84]
push eax
call fcn.0057a7f4
add esp, 8
add dword [esp + 0x10], 2
lea ebp, [esp + 0x80]
cmp ebp, 0x20
jl 0x45ca06
push ebp
call fcn.0057a7d7
mov ecx, dword [esp + 0x40]
add esp, 4
push eax
push ebp
call fcn.0046b410
lea edx, [edi + edi*2]
mov cx, word [esi + edx*2 + 0x8e6]
mov edx, dword [esp + 0x14]
movsx ebx, cx
add edx, eax
cmp edx, ebx
mov dword [esp + 0x58], edx
jle 0x45daf5
mov edx, dword [esp + 0x28]
mov dword [esp + 0x54], 0
test edx, edx
je 0x45cca7
mov edx, dword [esp + 0x14]
sub ecx, edx
lea edx, [edi + edi*2 + 0x474]
mov word [esi + edx*2], cx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
lea edi, [edi + edx + 1]
lea ecx, [edi + edi*2]
lea ecx, [esi + ecx*2 + 0x8e4]
movsx edx, word [ecx + 6]
add ecx, 6
inc edi
cmp edx, 0xffffffff
mov dword [esp + 0x14], edx
je 0x45ccb9
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xe0]
test ecx, ecx
je 0x45d779
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
inc edx
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x1df94]
test edx, edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], ebx
jle 0x45d77d
cmp dword [esp + 0x18], 2
jl 0x45d77d
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], 0xffffd8f0
add ecx, edx
cmp ecx, ebx
mov dword [esi + 0xd8], ecx
jl 0x45cd36
lea ecx, [ebx - 1]
mov dword [esi + 0xd8], ecx
mov dword [esi + 0x1df94], 0
jmp 0x45d77d
mov ebx, dword [esp + 0x70]
inc ebx
cmp edx, ecx
mov dword [esp + 0x70], ebx
jne 0x45cd6c
mov ecx, dword [esi]
mov edx, dword [esp + 0x10]
cmp word [ecx + edx*2 + 2], 3
jne 0x45d051
xor eax, eax
mov ax, word [ecx + edx*2]
jmp 0x45cdcc
test edx, edx
jne 0x45d051
mov ecx, dword [esi + 0x1dda4]
cmp ebx, ecx
je 0x45cd90
mov edx, dword [esi]
mov eax, dword [esp + 0x10]
cmp word [edx + eax*2 + 2], 3
jne 0x45d051
mov edx, dword [esi]
mov ebp, dword [esp + 0x10]
xor eax, eax
cmp ebx, ecx
mov ax, word [edx + ebp*2]
jne 0x45cdcc
lea edx, [edi + 0x19]
mov word [esi + ecx*8 + 0x1ddaa], dx
mov ecx, dword [esi + 0x1dda4]
mov word [esi + ecx*8 + 0x1ddac], ax
mov edx, dword [esi + 0x1dda4]
mov cx, word [esp + 0x60]
mov word [esi + edx*8 + 0x1ddae], cx
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
inc ecx
xor ebx, ebx
mov dword [esp + 0x10], ecx
mov bx, word [edx + ecx*2]
mov edx, 0xdc0838
shl eax, 4
sub edx, eax
cmp ebx, 3
mov dword [esp + 0x5c], ebx
mov ebp, dword [edx + 0x136628]
mov ecx, dword [edx + 0x136624]
mov dword [esp + 0x58], ebp
ja case.default.0x45ce04
jmp dword [ebx*4 + 0x45dee0]
mov edx, dword [esi + 0x1dda4]
lea eax, [edi + edi*2]
mov bx, word [esi + eax*2 + 0x8e4]
lea eax, [esi + eax*2 + 0x8e4]
mov word [esi + edx*8 + 0x1dda8], bx
movsx edx, word [eax]
lea ecx, [edx + ecx + 0x19]
lea edx, [ebp + 0x32]
test edx, edx
jle case.default.0x45ce04
mov word [eax], cx
add eax, 6
dec edx
jne 0x45ce3d
jmp case.default.0x45ce04
mov ebx, dword [esi + 0x1dda4]
lea eax, [edi + edi*2]
lea edx, [esi + eax*2 + 0x8e6]
mov ax, word [esi + eax*2 + 0x8e6]
sub ax, cx
mov word [esi + ebx*8 + 0x1dda8], ax
movsx eax, word [edx]
sub eax, ecx
lea ecx, [ebp + 0x32]
sub eax, 0x19
test ecx, ecx
jle case.default.0x45ce04
mov word [edx], ax
add edx, 6
dec ecx
jne 0x45ce81
jmp case.default.0x45ce04
mov eax, dword [esi + 0xc8]
sub eax, ecx
mov ecx, dword [esi + 0x1dda4]
cdq
sub eax, edx
sar eax, 1
mov word [esi + ecx*8 + 0x1dda8], ax
lea ecx, [ebp + 0x32]
test ecx, ecx
jle case.default.0x45ce04
lea edx, [edi + edi*2]
lea eax, [esi + edx*2 + 0x8e4]
mov word [eax], 0xffff
add eax, 6
dec ecx
jne 0x45cebf
jmp case.default.0x45ce04
mov ebx, dword [esp + 0x14]
lea eax, [edi + edi*2]
add ecx, 3
lea edx, [esi + eax*2 + 0x8e6]
lea ebp, [ecx + ebx]
mov ax, word [edx]
movsx ebx, ax
cmp ebp, ebx
jle 0x45cfc8
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x54], 0
test ebx, ebx
je 0x45cf1a
mov ebx, dword [esp + 0x14]
sub eax, ebx
lea ebx, [edi + edi*2 + 0x474]
mov word [esi + ebx*2], ax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
movsx edx, word [edx]
cmp ebp, edx
jle 0x45cf56
mov eax, dword [esp + 0x1c]
lea edx, [eax + 1]
add edi, edx
lea eax, [edi + edi*2]
lea eax, [esi + eax*2 + 0x8e4]
movsx ebx, word [eax + 6]
add eax, 6
inc edi
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
je 0x45cf34
lea eax, [edi + edi*2]
add ebx, ecx
movsx eax, word [esi + eax*2 + 0x8e6]
cmp ebx, eax
jg 0x45cf28
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x45cfbd
cmp dword [esp + 0x14c], 1
jne 0x45cfbd
mov ebp, dword [esp + 0x18]
mov ebx, dword [esi + 0x1df94]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
inc ebp
mov dword [esp + 0x4c], eax
test ebx, ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], ebp
jle 0x45cfbd
mov ebx, ebp
cmp ebx, 2
jl 0x45cfbd
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x18], 0xffffd8f0
add eax, ebx
cmp eax, edx
mov dword [esi + 0xd8], eax
jl 0x45cfb3
dec edx
mov dword [esi + 0xd8], edx
mov dword [esi + 0x1df94], 0
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x1c]
cmp eax, edx
jle 0x45cfd8
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x14c]
add edx, ecx
cmp eax, 1
mov dword [esp + 0x14], edx
je case.default.0x45ce04
mov eax, dword [esi + 0x1dda4]
mov edx, dword [esp + 0x70]
cmp edx, eax
jne case.default.0x45ce04
mov edx, dword [esp + 0x14]
sub edx, ecx
mov word [esi + eax*8 + 0x1dda8], dx
mov eax, dword [esi + 0x1dda4]
mov word [esi + eax*8 + 0x1ddaa], di
mov eax, dword [esi + 0x1dda4]
inc eax
mov dword [esi + 0x1dda4], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x5c]
add ecx, 2
cmp eax, 3
mov dword [esp + 0x10], ecx
je 0x45ca06
mov eax, dword [esp + 0x14c]
test eax, eax
je 0x45de6b
jmp 0x45ca06
add dword [esp + 0x10], 3
jmp 0x45ca06
cmp dword [esi + 0xdc], ecx
jne 0x45d08a
mov ecx, dword [esi]
mov eax, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x24], 0xff
mov dx, word [ecx + eax*2]
mov dword [esp + 0x20], 0
push edx
push str._FONT__d_
jmp 0x45d3a0
mov edx, dword [esi]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ax, word [edx + ecx*2]
cmp eax, 0xf
jge 0x45d09e
add eax, 5
lea edx, [eax + eax*8]
mov ecx, dword [esp + 0x1c]
lea eax, [edx*4 + 0xcbf3f8]
mov edx, dword [esp + 0x10]
add edx, 2
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0x14]
cmp eax, ecx
jg 0x45d0ce
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x45ca06
mov dword [esp + 0x1c], eax
jmp 0x45ca06
cmp dword [esi + 0xdc], ecx
jne 0x45d10f
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x24], 0xff
mov cx, word [eax + edx*2]
mov dword [esp + 0x20], 0
shl ecx, 4
mov eax, dword [ecx + 0x65a470]
push eax
push str._COLOUR__S_
jmp 0x45d3a0
cmp edx, ecx
jne 0x45d24d
mov edx, dword [esi]
mov ebx, dword [esp + 0x10]
xor eax, eax
mov ax, word [edx + ebx*2]
mov edx, dword [esi + 0xc]
cmp edx, 2
jne 0x45d140
cmp eax, ecx
jne 0x45d140
mov eax, 0xd7
mov edx, 0xd2
mov ecx, 0xa4
jmp 0x45d157
shl eax, 4
mov ecx, eax
mov eax, dword [ecx + 0x65a474]
mov edx, dword [ecx + 0x65a478]
mov ecx, dword [ecx + 0x65a47c]
mov ebx, dword [esp + 0x10]
and eax, 0xff
add ebx, 2
mov dword [esp + 0x10], ebx
xor ebx, ebx
mov bh, cl
mov bl, dl
shl ebx, 8
or ebx, eax
mov dword [esp + 0x74], ebx
jmp 0x45ca06
cmp dword [esi + 0xdc], ecx
jne 0x45d1b3
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x24], 0xff
mov cx, word [eax + edx*2]
mov dword [esp + 0x20], 0
shl ecx, 4
mov eax, dword [ecx + 0x65a470]
push eax
push str._LINKCOLOUR__S_
jmp 0x45d3a0
cmp edx, ecx
jne 0x45d24d
mov edx, dword [esi]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov ax, word [edx + ecx*2]
add ecx, 2
mov dword [esp + 0x10], ecx
xor ecx, ecx
shl eax, 4
mov ch, byte [eax + 0x65a47c]
mov edx, dword [eax + 0x65a474]
mov cl, byte [eax + 0x65a478]
and edx, 0xff
shl ecx, 8
or ecx, edx
mov dword [esp + 0x7c], ecx
jmp 0x45ca06
cmp dword [esi + 0xdc], ecx
jne 0x45d233
mov ecx, dword [esi]
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x24], 0xff
mov ax, word [ecx + edx*2]
mov dword [esp + 0x20], 0
lea eax, [eax + eax*4]
shl eax, 4
add eax, str.help_main.hlp
push eax
push str._LINK__S__
jmp 0x45d3a0
mov ebx, dword [esi]
mov ebp, dword [esp + 0x10]
xor eax, eax
cmp edx, ecx
mov ax, word [ebx + ebp*2]
mov dword [esp + 0x60], eax
jne 0x45d24d
mov dword [0xcbf3c8], ecx
add dword [esp + 0x10], 2
jmp 0x45ca06
cmp dword [esi + 0xdc], ecx
jne 0x45d24d
mov edx, dword [esi]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x24], 0xff
mov ax, word [edx + ecx*2]
mov dword [esp + 0x20], 0
lea edx, [eax + eax*4]
lea eax, [esp + 0x80]
shl edx, 4
add edx, str.help_main.hlp
push edx
push str._INCLUDE__S__
push eax
call fcn.0057aa16
add esp, 0xc
jmp case.default.0x45cbf4
cmp dword [esi + 0xdc], ecx
jne 0x45d2ee
mov ecx, dword [esi]
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x24], 0xff
mov ax, word [ecx + edx*2]
lea edx, [esp + 0x80]
mov dword [esp + 0x20], 0
lea eax, [eax + eax*4]
shl eax, 4
lea ecx, [eax + esi + 0x104]
push ecx
push str._SOUND__S__
push edx
call fcn.0057aa16
add esp, 0xc
jmp case.default.0x45cbf4
cmp edx, ecx
jne 0x45d327
mov ecx, dword [esi + 0xa8]
mov eax, edi
sub eax, ecx
js 0x45d327
cmp eax, dword [esi + 0xcc]
jge 0x45d327
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [eax + edx*2]
lea eax, [ecx + esi + 0x294]
mov cl, byte [ecx + esi + 0x294]
test cl, cl
jne 0x45d327
mov byte [eax], 1
add dword [esp + 0x10], 2
jmp 0x45ca06
cmp dword [esi + 0xdc], ecx
jne 0x45d353
mov dword [esp + 0x24], 0xff
mov dword [esp + 0x20], 0
push str._LINK_
jmp 0x45d61c
cmp edx, ecx
mov dword [esp + 0x60], 0xffffffff
jne 0x45ca06
mov dword [0xcbf3c8], 0
jmp 0x45ca06
cmp dword [esi + 0xdc], ecx
jne 0x45d24d
mov ecx, dword [esi]
mov eax, dword [esp + 0x10]
xor edx, edx
mov dword [esp + 0x24], 0xff
mov dx, word [ecx + eax*2]
mov dword [esp + 0x20], 0
push edx
push str._STRING__d_
lea ecx, [esp + 0x88]
push ecx
call fcn.0057aa16
add esp, 0xc
jmp case.default.0x45cbf4
cmp dword [esi + 0xdc], ecx
jne 0x45d3e7
lea edx, [esp + 0x80]
push str._CENTRE_
push edx
mov dword [esp + 0x2c], 0xff
mov dword [esp + 0x28], 0
call fcn.0057a81e
add esp, 8
jmp 0x45cc3a
mov dword [esp + 0x50], ecx
mov dword [esp + 0x28], ecx
jmp 0x45ca06
cmp dword [esi + 0xdc], ecx
jne 0x45d416
mov dword [esp + 0x24], 0xff
mov dword [esp + 0x20], 0
push 0x65a7ac
jmp 0x45d61c
mov dword [esp + 0x50], 0
jmp 0x45ca06
mov eax, dword [esp + 0x28]
xor ebp, ebp
cmp eax, ebp
je 0x45d452
lea eax, [edi + edi*2]
lea ebp, [edi + edi*2 + 0x474]
mov ax, word [esi + eax*2 + 0x8e6]
sub ax, word [esp + 0x14]
mov word [esi + ebp*2], ax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
xor ebp, ebp
cmp dword [esi + 0xe0], ebp
je 0x45d529
cmp ebx, dword [esi + 0xd8]
jne 0x45d529
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x6c], edi
add ebp, edi
cmp edx, ecx
mov dword [esp + 0x34], ebp
jne 0x45d527
xor ebp, ebp
test eax, eax
je 0x45d498
lea ecx, [edi + edi*2 + 0x474]
movsx eax, word [esi + ecx*2]
cdq
sub eax, edx
mov ebp, eax
sar ebp, 1
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0xa8]
mov edx, dword [esp + 0x14]
sub eax, ecx
lea ecx, [edx + ebp]
mov edx, dword [esi + 0xc0]
lea ecx, [ecx + edx - 1]
mov dx, word [0x8f1964]
push edx
mov edx, dword [esp + 0x38]
lea edx, [eax + edx + 1]
lea eax, [eax + edi - 1]
push edx
push ecx
push eax
push ecx
mov ecx, 0x1d9d5f8
call fcn.004688f0
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xc0]
sub eax, ecx
mov ecx, dword [esp + 0x14]
add ebp, ecx
lea ecx, [edx + ebp]
mov dx, word [0x8f1964]
push edx
mov edx, dword [esp + 0x38]
lea edx, [eax + edx + 1]
lea eax, [eax + edi - 1]
push edx
push ecx
push eax
push ecx
mov ecx, 0x1d9d5f8
call fcn.004688f0
mov edx, dword [esp + 0x14c]
mov dword [esp + 0x64], 1
xor ebp, ebp
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], ebp
lea edi, [edi + ecx + 3]
lea eax, [edi + edi*2]
lea eax, [esi + eax*2 + 0x8e4]
movsx ecx, word [eax + 6]
add eax, 6
inc edi
cmp ecx, 0xffffffff
mov dword [esp + 0x14], ecx
je 0x45d53f
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xe0]
cmp eax, ebp
je 0x45d5fa
mov ecx, dword [esp + 0x2c]
cmp edx, 1
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], ebx
jne 0x45d5bb
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x1df94]
cmp eax, ebp
jle 0x45d5bb
cmp dword [esp + 0x18], 2
jl 0x45d5bb
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], 0xffffd8f0
add eax, ecx
cmp eax, ebx
mov dword [esi + 0xd8], eax
jl 0x45d5b5
lea eax, [ebx - 1]
mov dword [esi + 0xd8], eax
mov dword [esi + 0x1df94], ebp
cmp ebx, dword [esi + 0xd8]
jne 0x45d5fa
cmp edx, 1
jne 0x45d5fa
mov eax, dword [esi + 0x1df94]
mov dword [esp + 0x38], ebp
cmp eax, ebp
jge 0x45d5f6
mov edx, dword [0x8f1520]
lea eax, [edx + ecx]
cmp eax, ebx
mov dword [esi + 0xd8], eax
jl 0x45d5f0
dec ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0x1df94], ebp
mov dword [esp + 0x18], ebp
cmp dword [esi + 0xdc], 1
jne 0x45ca06
mov dword [esp + 0x24], 0xff
mov dword [esp + 0x20], 0
push str._NEWPARAGRAPH_
lea eax, [esp + 0x84]
push eax
call fcn.0057a81e
add esp, 8
jmp 0x45cc3a
cmp dword [esi + 0xdc], ecx
jne 0x45d663
lea ecx, [esp + 0x80]
push str._tab_
push ecx
mov dword [esp + 0x2c], 0xff
mov dword [esp + 0x28], 0
call fcn.0057a81e
add esp, 8
jmp 0x45cc3a
lea edx, [edi + edi*2]
mov ax, word [esi + edx*2 + 0x8e6]
lea ecx, [esi + edx*2 + 0x8e6]
mov edx, dword [esp + 0x14]
movsx ebp, ax
add edx, 0x1e
cmp edx, ebp
jle 0x45d769
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x54], 0
test ebp, ebp
je 0x45d6b0
mov ebp, dword [esp + 0x14]
sub eax, ebp
lea ebp, [edi + edi*2 + 0x474]
mov word [esi + ebp*2], ax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
movsx ecx, word [ecx]
cmp edx, ecx
jle 0x45d6eb
mov edx, dword [esp + 0x1c]
lea ecx, [edx + 1]
add edi, ecx
lea eax, [edi + edi*2]
lea eax, [esi + eax*2 + 0x8e4]
movsx edx, word [eax + 6]
add eax, 6
inc edi
cmp edx, 0xffffffff
je 0x45d6ca
lea eax, [edi + edi*2]
lea ebp, [edx + 0x1e]
movsx eax, word [esi + eax*2 + 0x8e6]
cmp ebp, eax
jg 0x45d6be
jmp 0x45d6ef
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x45d752
cmp dword [esp + 0x14c], 1
jne 0x45d752
mov ebp, dword [esp + 0x18]
mov ecx, dword [esi + 0x1df94]
mov eax, dword [esp + 0x2c]
inc ebp
test ecx, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebp
jle 0x45d752
mov ecx, ebp
cmp ecx, 2
jl 0x45d752
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], 0xffffd8f0
add eax, ecx
cmp eax, ebx
mov dword [esi + 0xd8], eax
jl 0x45d748
dec ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0x1df94], 0
mov eax, dword [esp + 0x3c]
add edx, 0x1e
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x1c], ecx
jmp 0x45ca06
mov edx, dword [esp + 0x14]
add edx, 0x1e
mov dword [esp + 0x14], edx
jmp 0x45ca06
mov ebx, dword [esp + 0x30]
lea edx, [edi + edi*2]
lea ecx, [esi + edx*2 + 0x8e6]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
add eax, edx
movsx ecx, word [ecx]
cmp eax, ecx
mov dword [esp + 0x58], eax
jle 0x45daf5
mov eax, dword [esp + 0x28]
mov dword [esp + 0x68], 0
test eax, eax
je 0x45d7c4
lea edx, [edi + edi*2 + 0x474]
movsx eax, word [esi + edx*2]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x68], eax
push ebp
call fcn.0057a7d7
add esp, 4
mov dword [esp + 0x78], eax
test eax, eax
mov dword [esp + 0x44], 0
jle 0x45ca06
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebp
mov eax, dword [esp + 0x48]
mov cx, word [eax]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.0046b450
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x14]
mov ebp, eax
mov ax, word [edx]
mov dword [esp + 0x58], ebp
movsx ebx, ax
lea edx, [ecx + ebp]
cmp edx, ebx
mov ebx, dword [esp + 0x40]
jle 0x45d901
mov edx, dword [esp + 0x28]
jmp 0x45d82b
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x58]
test edx, edx
je 0x45d844
mov edx, dword [esp + 0x50]
sub eax, ecx
lea ecx, [edi + edi*2 + 0x474]
mov dword [esp + 0x28], edx
mov word [esi + ecx*2], ax
mov eax, dword [esp + 0x1c]
inc eax
add edi, eax
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x45d8b0
cmp dword [esp + 0x14c], 1
jne 0x45d8b0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x1df94]
test ecx, ecx
mov dword [esp + 0x2c], ebx
jle 0x45d8b0
cmp dword [esp + 0x18], 2
jl 0x45d8b0
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], 0xffffd8f0
add eax, ecx
cmp eax, ebx
mov dword [esi + 0xd8], eax
jl 0x45d8a6
lea eax, [ebx - 1]
mov dword [esi + 0xd8], eax
mov dword [esi + 0x1df94], 0
lea ecx, [edi + edi*2]
lea eax, [esi + ecx*2 + 0x8e4]
movsx ecx, word [eax + 6]
add eax, 6
inc edi
cmp ecx, 0xffffffff
mov dword [esp + 0x14], ecx
je 0x45d8ba
test edx, edx
je 0x45d8e3
lea edx, [edi + edi*2 + 0x474]
movsx eax, word [esi + edx*2]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x68], eax
lea eax, [edi + edi*2]
add ebp, ecx
lea eax, [esi + eax*2 + 0x8e6]
mov dword [esp + 0x5c], eax
mov ax, word [eax]
movsx edx, ax
cmp ebp, edx
jg 0x45d823
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x45da14
cmp ebx, dword [esi + 0xd8]
jne 0x45da14
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x6c], edi
lea ecx, [edi + eax]
mov eax, dword [esp + 0x14c]
cmp eax, 1
mov dword [esp + 0x34], ecx
jne 0x45dab9
mov eax, dword [esp + 0x20]
xor edx, edx
cmp eax, edx
je 0x45da22
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
sub eax, ecx
add eax, ebx
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x1df94]
cmp eax, edx
jge 0x45d988
mov eax, dword [0x8f1520]
mov ebx, dword [esp + 0x4c]
add eax, ebx
cmp eax, ecx
mov dword [esi + 0xd8], eax
jl 0x45d982
dec ecx
mov dword [esi + 0xd8], ecx
mov dword [esi + 0x1df94], edx
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0xa8]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
sub eax, ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0xc0]
add ecx, ebx
lea ecx, [ecx + edx - 1]
mov dx, word [0x8f1964]
push edx
lea edx, [eax + ebp + 1]
push edx
lea eax, [eax + edi - 1]
push ecx
push eax
push ecx
mov ecx, 0x1d9d5f8
call fcn.004688f0
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xc0]
sub eax, ecx
mov ecx, dword [esp + 0x68]
add ecx, ebx
add ecx, edx
mov dx, word [0x8f1964]
push edx
lea edx, [eax + ebp + 1]
push edx
lea eax, [eax + edi - 1]
push ecx
push eax
push ecx
mov ecx, 0x1d9d5f8
call fcn.004688f0
mov dword [esp + 0x64], 1
jmp 0x45da22
cmp dword [esp + 0x14c], 1
jne 0x45dab9
mov ebp, dword [esi + 0xc0]
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xa8]
add ebp, ebx
mov ebx, dword [esi + 0xc4]
add ebp, edx
mov edx, dword [esp + 0x24]
sub ebx, ecx
mov ecx, dword [esp + 0x48]
add ebx, edi
push 0
mov ax, word [ecx]
mov ecx, dword [esp + 0x40]
push edx
push ebx
push ebp
push eax
call fcn.0046b470
mov ecx, dword [esp + 0x1c]
sub eax, ebp
add ecx, 2
mov dword [esp + 0x54], 1
push ecx
mov ecx, dword [esi + 0xd4]
sub ebx, ecx
push eax
push ebx
mov ebx, dword [esi + 0xd0]
sub ebp, ebx
mov ecx, 0x1bd5928
push ebp
call fcn.004679d0
test eax, eax
je 0x45dab9
mov eax, dword [esp + 0x20]
test eax, eax
je 0x45daaf
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x60]
mov dword [esi + 0x1df8c], edx
mov dword [esi + 0x1df90], eax
jmp 0x45dab9
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x1df8c], ecx
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x78]
add eax, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
inc eax
add ebx, 2
inc edx
cmp eax, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], edx
jl 0x45d7e9
jmp 0x45ca06
mov ebx, dword [esi + 0xc0]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0xa8]
add ebx, eax
mov eax, dword [esi + 0xc4]
sub eax, edx
add eax, edi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x45db2f
lea eax, [edi + edi*2 + 0x474]
movsx eax, word [esi + eax*2]
cdq
sub eax, edx
sar eax, 1
add ebx, eax
push ebp
call fcn.0057a7d7
add esp, 4
mov dword [esp + 0x78], eax
test eax, eax
mov dword [esp + 0x44], 0
jle 0x45dd03
mov dword [esp + 0x40], ebp
mov edx, dword [esi + 0xe0]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x14c]
test edx, edx
je 0x45dc42
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x30]
add edx, ebp
mov ebp, dword [esi + 0xd8]
cmp edx, ebp
jne 0x45dc42
cmp ecx, 1
jne 0x45dbdc
mov edx, dword [esp + 0x20]
test edx, edx
je 0x45dbdc
mov ecx, dword [esp + 0x1c]
mov dx, word [0x8f1964]
push edx
lea ebp, [eax + ecx + 1]
lea ecx, [ebx - 1]
dec eax
push ebp
push ecx
push eax
push ecx
mov ecx, 0x1d9d5f8
mov dword [esp + 0x70], eax
call fcn.004688f0
mov ax, word [0x8f1964]
mov ecx, dword [esp + 0x5c]
push eax
push ebp
push ebx
push ecx
push ebx
mov ecx, 0x1d9d5f8
call fcn.004688f0
mov ecx, dword [esp + 0x14c]
mov dword [esp + 0x64], 1
mov edx, dword [esp + 0x1c]
cmp ecx, 1
mov dword [esp + 0x6c], edi
lea eax, [edi + edx]
mov dword [esp + 0x34], eax
jne 0x45dcd0
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
sub eax, ecx
add eax, ebp
xor edx, edx
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x1df94]
cmp eax, edx
mov dword [esp + 0x18], edx
jge 0x45dc4b
cmp dword [esp + 0x20], edx
je 0x45dc4b
mov eax, dword [0x8f1520]
mov ebp, dword [esp + 0x4c]
add eax, ebp
cmp eax, ecx
mov dword [esi + 0xd8], eax
jl 0x45dc3a
dec ecx
mov dword [esi + 0xd8], ecx
mov dword [esi + 0x1df94], edx
jmp 0x45dc4b
cmp ecx, 1
jne 0x45dcd0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
push 0
push edx
mov ax, word [ecx]
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x48]
push ebx
push eax
mov ebp, ebx
mov dword [esp + 0x68], 1
call fcn.0046b470
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov ebx, eax
add edx, 2
sub eax, ebp
push edx
push eax
mov eax, dword [esi + 0xd4]
sub ecx, eax
mov eax, dword [esi + 0xd0]
sub ebp, eax
push ecx
push ebp
mov ecx, 0x1bd5928
call fcn.004679d0
test eax, eax
je 0x45dce3
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
test eax, eax
je 0x45dcc8
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x60]
add eax, edx
mov dword [esi + 0x1df90], ecx
mov dword [esi + 0x1df8c], eax
jmp 0x45dce3
mov dword [esi + 0x1df8c], edx
jmp 0x45dce3
mov eax, dword [esp + 0x40]
mov cx, word [eax]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.0046b450
add ebx, eax
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
inc eax
add edx, 2
cmp eax, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], edx
jl 0x45db50
mov edx, dword [esp + 0x58]
mov dword [esp + 0x14], edx
jmp 0x45ca06
xor ebx, ebx
cmp edx, ebx
jne 0x45ddd0
mov eax, dword [esp + 0x1c]
mov edx, 0x19
lea ecx, [edi + eax - 1]
mov dword [esi + 0xac], ecx
mov ebp, dword [esi + 0xac]
inc ebp
mov eax, ebp
mov dword [esi + 0xac], ebp
lea ecx, [eax + eax*2]
cmp word [esi + ecx*2 + 0x8e4], dx
lea ecx, [esi + ecx*2]
jne 0x45dd5f
movsx ecx, word [ecx + 0x8e6]
mov edi, dword [esi + 0xc8]
sub edi, edx
cmp ecx, edi
je 0x45dd66
cmp eax, 0x4e20
jl 0x45dd2d
add eax, 5
mov dword [esi + 0xac], eax
mov eax, dword [esi + 0xe0]
cmp eax, ebx
je 0x45de53
mov eax, dword [esp + 0x6c]
mov ecx, dword [esi + 0xa8]
cmp eax, ecx
jge 0x45dd91
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xcc]
mov edi, dword [esi + 0xa8]
mov ecx, dword [esp + 0x34]
mov edx, eax
add edx, edi
cmp ecx, edx
jle 0x45de53
sub ecx, eax
pop edi
add ecx, 5
mov eax, 1
mov dword [esi + 0xa8], ecx
pop esi
mov dword [0xcbf3c8], ebx
pop ebp
pop ebx
add esp, 0x138
ret 4
cmp dword [esi + 0xe0], ebx
je 0x45de53
mov eax, dword [esp + 0x38]
mov dword [0x8f1520], eax
mov edx, dword [esi + 0x1df94]
cmp edx, ebx
jle 0x45de10
cmp dword [esp + 0x18], ecx
jne 0x45de10
mov ecx, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0xd8], eax
jle 0x45de0a
mov dword [esi + 0xd8], ecx
mov dword [esi + 0x1df94], ebx
cmp dword [esp + 0x64], ebx
jne 0x45de4d
mov eax, dword [esi + 0xd8]
cmp eax, ebx
je 0x45de4d
cmp dword [0x8f1524], ebx
je 0x45de4d
dec eax
mov dword [esi + 0x1df98], ebx
mov dword [esi + 0xd8], eax
pop edi
pop esi
mov dword [0xcbf3c8], ebx
pop ebp
mov eax, 1
pop ebx
add esp, 0x138
ret 4
mov dword [0x8f1524], ebx
pop edi
pop esi
mov dword [0xcbf3c8], ebx
pop ebp
mov eax, 1
pop ebx
add esp, 0x138
ret 4
mov eax, dword [esi + 0x1dda4]
pop edi
inc eax
mov dword [esi + 0x1dda4], eax
pop esi
pop ebp
mov dword [0xcbf3c8], 0
xor eax, eax
pop ebx
add esp, 0x138
ret 4