Function at 0x418a30
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
sub esp, 0xdc
mov eax, dword [eax + 0x12c]
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x128]
mov dword [esp + 0xa0], eax
call fcn.00413900
cmp eax, 1
mov dword [esp + 0xa8], 0xffffffff
je 0x419e71
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0x400
mov dword [esp + 0xb8], 0x400
call fcn.004cd640
mov dword [esp + 8], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 4], 0x14
mov eax, dword [ebp + 0x12c]
mov dword [esp], eax
call fcn.004cd640
mov dword [esp + 0x5c], eax
movzx eax, byte [ebp + 0x135]
cmp byte [ebp + 0xbe], al
mov dword [esp + 0x9c], 0
setne al
movzx eax, al
shl eax, 0x14
cmp byte [ebp + 0xc4], 0
mov dword [esp + 0x88], eax
je 0x418b30
cmp byte [ebp + 0x134], 0
mov dword [esp + 0x9c], 0x20000000
je 0x418b19
cmp byte [ebp + 0xc7], 0
mov dword [esp + 0x9c], 0x40000000
je 0x419ef6
cmp byte [ebp + 0xae], 0
jne 0x419e61
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebp + 0x94]
mov ecx, 0x186a
mov eax, ebp
mov esi, edx
sub esi, dword [ebp + 0x10]
mov dword [esp], 0
mov dword [esp + 0xa4], esi
call fcn.00416fc0
mov edi, dword [ebp + 0x98]
mov edx, eax
mov ebx, eax
mov ecx, esi
mov eax, ebp
mov dword [esp + 0x6c], edi
call fcn.00417d10
test eax, eax
je 0x419ed1
mov ecx, dword [ebp + 0x10b4]
lea edx, [esi + esi*4]
lea edx, [ecx + edx*4]
mov edx, dword [edx + 0xc]
mov esi, dword [edx + edi*4]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x6c]
test esi, esi
jle 0x418ba8
lea edx, [esi + esi*4]
cmp dword [eax + edx*4], 0xdfff
sete al
movzx eax, al
sub esi, eax
mov dword [esp + 0x6c], esi
cmp byte [ebx + 0xc], 0
jne 0x419ec5
mov edx, dword [ebp + 0x20]
test edx, edx
js 0x418c13
mov esi, dword [esp + 0x9c]
cmp dword [ebp + 0x24], esi
mov eax, dword [ebp + 0x1c]
jne 0x418bd5
cmp edx, dword [esp + 0xa4]
je 0x419f28
mov ecx, dword [ebp + 0x18]
test eax, eax
mov ecx, dword [ecx + edx*4]
lea edx, [eax + eax*4]
mov ecx, dword [ecx + 0x14]
lea edx, [ecx + edx*4]
jle 0x418bf4
cmp dword [edx], 0xdfff
je 0x419ed9
mov esi, dword [ebp + 0x12c]
lea ecx, [esi - 1]
cmp ecx, eax
jg 0x419e03
or dword [edx + 4], 0x3ffff
mov dword [ebp + 0x24], 0
mov esi, dword [ebp + 0x128]
mov dword [ebp + 0x20], 0xffffffff
mov dword [ebp + 0x1c], 0xffffffff
test esi, esi
jle 0x419c50
mov dword [esp + 0xac], 0
mov dword [esp + 0x98], 0
mov edi, ebp
mov dword [esp + 0x4c], 0
nop
mov esi, dword [esp + 0x4c]
mov eax, dword [edi + 0x10]
mov ecx, 0x18a0
mov dword [esp], 0
add eax, esi
mov edx, eax
mov dword [esp + 0x64], eax
mov eax, edi
call fcn.00416fc0
mov ecx, esi
mov dword [esp + 0x8c], eax
mov edx, eax
mov eax, edi
call fcn.00417d10
test eax, eax
mov dword [esp + 0x40], eax
je 0x419d50
mov ebx, dword [edi + 0x10b4]
lea eax, [esi + esi*4]
lea eax, [ebx + eax*4]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x4c]
mov eax, dword [edi + 0x12c]
lea ebx, [esi*4]
test eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], ebx
jle 0x419df0
cmp dword [esp + 0xa4], esi
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x20], 0
mov ebp, edx
sete byte [esp + 0x60]
xor esi, esi
jmp 0x418ef9
mov edx, dword [esp + 0x40]
movzx ecx, byte [edx + esi + 8]
mov byte [esp + 0x2c], cl
movzx ecx, byte [edx + esi + 9]
mov byte [esp + 0x30], cl
movzx ecx, byte [edx + esi + 0xa]
mov byte [esp + 0x34], cl
movzx ecx, byte [edx + esi + 0xb]
mov byte [esp + 0x3b], cl
movzx ecx, byte [edx + esi + 0xc]
mov byte [esp + 0x48], cl
movzx ecx, byte [edx + esi + 0xd]
mov byte [esp + 0x90], cl
movzx ecx, byte [edx + esi + 0xe]
mov byte [esp + 0x50], cl
movzx ecx, byte [edx + esi + 0xf]
mov edx, dword [esp + 0x24]
xor dl, dl
mov byte [esp + 0x54], cl
cmp edx, 0xd900
je 0x418fcb
cmp edx, 0xda00
je 0x419142
cmp edx, 0xd800
jne 0x418d71
movzx edx, byte [esp + 0x24]
mov ecx, dword [edi + 0x106c]
movzx ecx, word [ecx + edx*2 + 0x20c]
mov dword [esp + 0x24], ecx
sub eax, 1
cmp eax, dword [esp + 0x20]
jle 0x418d90
mov eax, dword [esp + 0x40]
cmp dword [eax + esi + 0x14], 0xdfff
jne 0x418d90
or ebx, 0x400000
nop
call fcn.00413900
cmp eax, 1
je 0x419080
mov edx, ebx
mov dword [edi + 0x1144], 0
and edx, 0x1ff
je 0x418dc5
mov eax, ebx
shr eax, 9
and eax, 0x1ff
cmp eax, 2
je 0x4191b0
mov eax, dword [edi + 0xe28]
xor ebx, dword [esp + 0x88]
sub eax, 2
cmp eax, 1
jbe 0x418ff0
cmp byte [edi + 0xc9], 0
je 0x418e18
test ebx, 0x200000
je 0x418e18
cmp byte [edi + 0x134], 0
je 0x418e12
cmp byte [edi + 0xc8], 0
je 0x418e12
mov eax, dword [edi + 0x106c]
movzx eax, word [eax + 0x24c]
mov dword [esp + 0x24], eax
and ebx, 0xffdfffff
mov ecx, dword [esp + 0x44]
mov eax, dword [edi + 0x18]
mov eax, dword [eax + ecx]
mov ecx, dword [eax + 0x14]
add ecx, esi
mov eax, ecx
mov ecx, dword [esp + 0x24]
cmp dword [eax], ecx
je 0x419050
test ebx, 0x400000
jne 0x418e61
mov eax, dword [edi + 0x1064]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x10]
mov edx, ebx
or edx, 0x800000
cmp eax, 2
cmove ebx, edx
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x6c], ecx
jne 0x418e88
cmp byte [esp + 0x60], 0
je 0x418e88
mov eax, dword [esp + 0x9c]
mov dword [edi + 0x1c], ecx
or ebx, eax
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x20], 1
add ebp, 0x14
mov dword [ebp - 4], 0
mov ecx, dword [esp + 0x20]
add esi, 0x14
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
movzx eax, byte [esp + 0x2c]
mov byte [ebp - 0xc], al
movzx eax, byte [esp + 0x30]
mov byte [ebp - 0xb], al
movzx eax, byte [esp + 0x34]
mov byte [ebp - 0xa], al
movzx eax, byte [esp + 0x3b]
mov byte [ebp - 9], al
movzx eax, byte [esp + 0x48]
mov byte [ebp - 8], al
movzx eax, byte [esp + 0x90]
mov byte [ebp - 7], al
movzx eax, byte [esp + 0x50]
mov byte [ebp - 6], al
movzx eax, byte [esp + 0x54]
mov byte [ebp - 5], al
mov eax, dword [edi + 0x12c]
cmp eax, ecx
jle 0x419250
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x20]
test ecx, ecx
mov dword [esp + 0x28], ebx
je 0x418f10
mov ebx, dword [ecx + ebx*4]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x40]
cmp byte [edi + 0x10bd], 0
mov ecx, dword [ebx + esi]
mov ebx, dword [ebx + esi + 4]
mov dword [esp + 0x24], ecx
jne 0x418f34
and ebx, 0xfffc0000
or ebx, 0x20500
cmp byte [edi + 0x111b], 0
jne 0x418f81
mov ecx, ebx
mov edx, ebx
and ecx, 0x1ff
and edx, 0xfffffe00
sub ecx, 0x10
or dh, 1
cmp ecx, 0xf0
cmovb ebx, edx
mov edx, ebx
mov ecx, ebx
shr edx, 9
and ecx, 0xfffc01ff
and edx, 0x1ff
or ecx, 0x20400
sub edx, 0x10
cmp edx, 0xf0
cmovb ebx, ecx
cmp byte [edi + 0x111c], 0
jne 0x418ce5
mov edx, dword [esp + 0x24]
mov byte [esp + 0x54], 0
mov byte [esp + 0x50], 0
mov byte [esp + 0x90], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0x3b], 0
xor dl, dl
mov byte [esp + 0x34], 0
mov byte [esp + 0x30], 0
cmp edx, 0xd900
mov byte [esp + 0x2c], 0
jne 0x418d46
movzx edx, byte [esp + 0x24]
mov ecx, dword [edi + 0x106c]
movzx ecx, word [ecx + edx*2 + 0x60c]
mov dword [esp + 0x24], ecx
jmp 0x418d71
mov ecx, dword [edi + 0xe2c]
mov eax, dword [edi + 0xe34]
mov edx, dword [edi + 0xe38]
test ecx, ecx
jne 0x419160
cmp dword [esp + 0x64], eax
je 0x419d42
setg al
test al, al
je 0x418dde
mov ecx, dword [esp + 0x64]
cmp ecx, dword [edi + 0xe3c]
mov eax, dword [edi + 0xe40]
jne 0x419035
cmp dword [esp + 0x28], eax
setl al
mov edx, ebx
xor edx, 0x100000
test al, al
cmovne ebx, edx
jmp 0x418dde
mov eax, dword [eax + 4]
mov edx, eax
and edx, 0xf7fffff
cmp edx, ebx
jne 0x418e35
mov edx, ebx
or edx, 0x800000
test eax, 0x800000
cmovne ebx, edx
jmp 0x418e61
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x94], ecx
jne 0x419195
mov ecx, dword [esp + 0xa0]
cmp dword [esp + 0x4c], ecx
jne 0x419195
cmp dword [esp + 0x98], 1
je 0x419d90
mov eax, dword [esp + 0xc4]
cmp dword [edi + 0x12c], eax
mov ecx, dword [esp + 0xc8]
mov dword [esp + 0x94], eax
mov dword [esp + 0xa0], ecx
jne 0x4190ea
mov eax, dword [esp + 0x98]
add dword [esp + 0xa0], 1
mov dword [esp + 0x94], eax
cmp dword [esp + 0xa8], 9
je 0x419d70
cmp ebx, 0x20500
mov dword [esp + 0x98], 1
jne 0x418d9e
mov eax, dword [esp + 0xa8]
cmp eax, 0xffffffff
je 0x419128
test eax, eax
jne 0x419e1c
mov ebx, 0xa0500
mov dword [edi + 0x1144], 0
mov dword [esp + 0x98], 1
jmp 0x418dc5
movzx edx, byte [esp + 0x24]
mov ecx, dword [edi + 0x106c]
movzx ecx, word [ecx + edx*2 + 0xc]
mov dword [esp + 0x24], ecx
jmp 0x418d71
cmp dword [esp + 0x28], edx
jl 0x418dde
cmp dword [esp + 0x64], eax
jl 0x418dde
mov eax, dword [esp + 0x28]
cmp eax, dword [edi + 0xe40]
mov eax, dword [esp + 0x64]
setl dl
cmp eax, dword [edi + 0xe3c]
setle al
and eax, edx
jmp 0x419038
cmp dword [esp + 0x98], 1
jne 0x418d9e
jmp 0x4190ea
cmp edx, 4
jne 0x418dc5
mov eax, dword [esp + 0x24]
shr eax, 8
cmp eax, 0xdd
je 0x4191cf
test eax, eax
jne 0x418dc5
mov eax, dword [0x522678]
mov dword [esp + 8], 0x2a
mov dword [esp + 4], 0x96
mov dword [esp], eax
call fcn.004cae80
cmp eax, 0x12
jne 0x418dc5
mov eax, dword [0x522678]
mov dword [esp + 8], 0x2b
mov dword [esp + 4], 0x96
mov dword [esp], eax
call fcn.004cae80
cmp eax, 0x96
jne 0x418dc5
mov eax, dword [0x522678]
mov dword [esp + 8], 0x2c
mov dword [esp + 4], 0x96
mov dword [esp], eax
call fcn.004cae80
mov edx, ebx
and edx, 0xfffffe00
cmp eax, 0xbe
cmove ebx, edx
jmp 0x418dc5
mov ebx, eax
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x44]
mov eax, dword [edi + 0x18]
test ebx, ebx
mov esi, dword [eax + esi]
mov dword [esp + 0x2c], esi
jle 0x4192f7
mov ebx, dword [esi + 0x14]
mov eax, 4
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], 0
xor ecx, ecx
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x30], edi
jmp 0x4192bd
cmp edi, esi
je 0x419860
cmp byte [esp + 0x24], 0
je 0x41a077
or edx, 0x3ffff
mov byte [esp + 0x24], 1
mov dword [ebx + eax], edx
add ecx, 1
add eax, 0x14
cmp dword [esp + 0x20], ecx
je 0x4192f3
mov edx, dword [ebx + eax]
mov edi, dword [ebx + eax - 4]
mov esi, dword [ebp + eax - 4]
test edx, edx
jns 0x419290
cmp edi, esi
mov dword [esp + 0x28], ecx
jne 0x4192a3
mov esi, edx
and esi, 0xfffffff
cmp dword [ebp + eax], esi
jne 0x4192a3
add ecx, 1
add eax, 0x14
cmp dword [esp + 0x20], ecx
mov byte [esp + 0x24], 0
jne 0x4192bd
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
movzx eax, word [eax]
cmp word [edx], ax
mov word [edx], ax
mov eax, dword [edi + 0x74]
setne byte [esp + 0x3b]
test ebx, ebx
movzx ecx, byte [esp + 0x3b]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x78]
mov dword [esp + 0x84], eax
movzx eax, byte [edi + 0x74]
mov byte [esp + 0x90], al
movzx eax, byte [edi + 0x75]
mov byte [esp + 0x60], al
movzx eax, byte [edi + 0x76]
mov byte [esp + 0x64], al
movzx eax, byte [edi + 0x77]
mov byte [esp + 0x68], al
movzx eax, byte [edi + 0x78]
mov byte [esp + 0x91], al
movzx eax, byte [edi + 0x79]
mov byte [esp + 0x70], al
movzx eax, byte [edi + 0x7a]
mov byte [esp + 0x92], al
movzx eax, byte [edi + 0x7b]
mov byte [esp + 0x74], al
jle 0x419c2a
mov byte [esp + 0x30], cl
mov byte [esp + 0x93], 0
xor esi, esi
mov dword [esp + 0x7c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
jmp 0x4197d5
mov edx, dword [esp + 0x28]
test edx, edx
jle 0x4193de
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + edx - 0x14]
lea edx, [ecx - 0x23ba]
mov dword [esp + 0x54], ecx
mov ecx, 1
cmp edx, 3
cmovbe eax, ecx
mov ecx, dword [esp + 0x20]
mov edx, ecx
and edx, 0xfffffc00
cmp edx, 0xd800
mov dword [esp + 0x54], edx
je 0x4198a0
and ecx, 0xfffffe00
xor edx, edx
cmp ecx, 0xdc00
je 0x4198a0
cmp edx, dword [esp + 0x58]
mov edx, dword [esp + 0x24]
mov ecx, 1
mov ebp, dword [edx + 0x10]
cmovne eax, ecx
test ebp, ebp
jne 0x419a60
mov ebp, dword [esp + 0x28]
test ebp, ebp
jle 0x419439
mov edx, dword [edx - 4]
test edx, edx
cmovne eax, ecx
mov ecx, dword [esp + 0x24]
cmp dword [ecx], 0xdffe
je 0x419a75
cmp dword [esp + 0x28], 1
jle 0x41945d
cmp dword [ecx - 0x14], 0xdfff
je 0x419d30
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x106c]
cmp byte [edx], 0
jne 0x419882
cmp byte [esp + 0x3b], 0
jne 0x419882
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x20]
cmp dword [ecx], ebp
je 0x419aa8
cmp byte [esp + 0x30], 1
je 0x419882
cmp esi, 1
jne 0x419882
test esi, esi
je 0x419579
movzx eax, byte [esp + 0x30]
or al, byte [esp + 0x93]
je 0x419579
movzx eax, byte [esp + 0x90]
movzx edi, byte [esp + 0x64]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x80], al
mov eax, dword [esp + 0x80]
shl edi, 0x10
mov ah, byte [esp + 0x60]
mov edx, edi
shl ecx, 0x18
movzx edi, ax
mov eax, dword [esp + 0x68]
or edi, edx
movzx edx, byte [esp + 0x92]
shl eax, 0x18
or edi, eax
movzx eax, byte [esp + 0x91]
shl edx, 0x10
mov dword [esp + 0x14], edi
mov byte [esp + 0x84], al
mov eax, dword [esp + 0x84]
mov ah, byte [esp + 0x70]
movzx eax, ax
or eax, edx
mov edx, dword [esp + 0x8c]
or eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
lea ecx, [edx + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
mov eax, esi
call fcn.00418820
mov edi, dword [esp + 0x44]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x106c]
mov eax, dword [eax + edi]
mov edi, dword [esp + 0x50]
add edi, dword [eax + 0x14]
mov dword [esp + 0x48], edi
mov eax, dword [ebx + 8]
cmp dword [esp + 0x54], 0xd800
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x84], eax
movzx eax, byte [ebx + 8]
mov byte [esp + 0x90], al
movzx eax, byte [ebx + 9]
mov byte [esp + 0x60], al
movzx eax, byte [ebx + 0xa]
mov byte [esp + 0x64], al
movzx eax, byte [ebx + 0xb]
mov byte [esp + 0x68], al
movzx eax, byte [ebx + 0xc]
mov byte [esp + 0x91], al
movzx eax, byte [ebx + 0xd]
mov byte [esp + 0x70], al
movzx eax, byte [ebx + 0xe]
mov byte [esp + 0x92], al
movzx eax, byte [ebx + 0xf]
mov byte [esp + 0x74], al
je 0x419c04
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], 0
and eax, 0xfffffe00
cmp eax, 0xdc00
je 0x419c04
cmp byte [edx], 0
je 0x419611
movzx eax, byte [esp + 0x30]
mov byte [esp + 0x93], al
mov eax, dword [esp + 0x28]
mov dword [esp + 0x54], 1
xor edi, edi
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x78], eax
movzx eax, byte [esp + 0x3b]
mov byte [esp + 0x30], al
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov ecx, ebp
call fcn.00417cb0
movzx ecx, byte [esp + 0x30]
cmp al, 1
mov dword [esp + 0x14], 0
setb byte [esp + 0x48]
test al, al
mov eax, 1
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
cmove ecx, eax
lea eax, [esp + 0xb8]
mov byte [esp + 0x30], cl
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004cd6f0
mov ecx, eax
mov dword [esp + 0x3c], eax
lea eax, [ebp - 0x10001]
cmp eax, 0xffffe
ja 0x4198b0
lea eax, [ebp - 0x10000]
add esi, 2
shr eax, 0xa
sub ax, 0x2800
mov word [ecx + edi], ax
mov eax, ebp
mov edi, dword [esp + 0x54]
and ax, 0x3ff
sub ax, 0x2400
mov word [ecx + edi*2], ax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x4198d0
cmp byte [esp + 0x48], 0
jne 0x4199bf
test dword [esp + 0x34], 0x400000
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov eax, dword [eax + 0x12c]
lea ebx, [edi + 1]
je 0x4197bb
add edi, 2
cmp eax, ebx
mov dword [esp + 0x20], edi
jle 0x419c13
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x4c]
add eax, 0x14
cmp dword [esp + 0xa4], edi
mov dword [esp + 0x28], eax
jne 0x41975e
cmp dword [esp + 0x6c], ebx
jne 0x41975e
mov dword [esp + 8], 0x1a0a
mov dword [esp + 4], str._MoTTY_terminal_terminal.c
mov dword [esp], str.__i__our_curs_y__j__our_curs_x_
call fcn.004d8b40
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x50]
mov eax, dword [eax + 0x18]
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov edi, dword [eax + edi]
mov eax, dword [edi + 0x14]
mov dword [esp], edx
lea eax, [eax + ebp + 0x14]
mov ebp, dword [esp + 0x28]
mov edx, ebp
call fcn.00417cb0
movzx edx, byte [esp + 0x30]
test al, al
mov eax, 1
mov ecx, ebp
cmove edx, eax
mov eax, edi
mov byte [esp + 0x30], dl
mov edx, ebx
call fcn.004168c0
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov eax, dword [eax + 0x12c]
cmp eax, ebx
jle 0x419c1f
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x28], ebx
mov eax, dword [eax + 0x18]
mov edx, dword [eax + edi]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x5c]
lea eax, [eax + eax*4]
shl eax, 2
add ebx, eax
add edi, eax
mov dword [esp + 0x50], eax
add eax, dword [edx + 0x14]
mov dword [esp + 0x24], edi
mov edi, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], edi
mov edi, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x48], eax
mov eax, ecx
movzx ecx, byte [esp + 0x3b]
xor eax, edi
test eax, 0x400000
mov eax, 1
cmovne ecx, eax
mov eax, 1
mov byte [esp + 0x3b], cl
movzx ecx, byte [esp + 0x90]
cmp byte [ebx + 8], cl
je 0x419b80
mov ecx, dword [esp + 0x20]
lea edx, [ecx - 0x23ba]
cmp edx, 3
ja 0x4193b5
mov eax, 1
jmp 0x4193de
mov esi, edx
and esi, 0xfffffff
cmp esi, dword [ebp + eax]
jne 0x419298
cmp byte [esp + 0x24], 0
je 0x4192b1
jmp 0x4192a3
test al, al
jne 0x41949f
lea eax, [esi + 1]
mov ebx, esi
lea edi, [esi + esi]
mov dword [esp + 0x54], eax
jmp 0x419638
mov edx, dword [esp + 0x20]
xor dl, dl
jmp 0x41940e
movzx eax, word [esp + 0x20]
mov esi, dword [esp + 0x3c]
mov word [esi + edi], ax
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x54]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4196eb
mov edx, eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
jmp 0x41990f
lea edx, [ebx - 0x10000]
and bx, 0x3ff
sub bx, 0x2400
shr edx, 0xa
sub dx, 0x2800
mov word [eax + esi*2], dx
mov edx, dword [edi + 0x10]
add esi, 2
mov word [eax + ebp + 2], bx
test edx, edx
je 0x4199a8
lea edx, [edx + edx*4]
lea edi, [edi + edx*4]
mov ebx, dword [edi]
mov edx, ebx
xor dl, dl
cmp edx, 0xd900
je 0x419b60
cmp edx, 0xda00
je 0x419b40
cmp edx, 0xd800
jne 0x419950
mov ecx, dword [esp + 0x2c]
movzx ebx, bl
mov edx, dword [ecx + 0x106c]
movzx ebx, word [edx + ebx*2 + 0x20c]
lea ecx, [esp + 0xb8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], esi
mov dword [esp + 8], 2
lea ebp, [esi + esi]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004cd6f0
lea edx, [ebx - 0x10001]
lea ecx, [esi + 1]
cmp edx, 0xffffe
jbe 0x4198e0
mov edx, dword [edi + 0x10]
mov word [eax + esi*2], bx
mov esi, ecx
test edx, edx
jne 0x41990f
or dword [esp + 0x78], 0x80000000
cmp byte [esp + 0x48], 0
mov dword [esp + 0x3c], eax
je 0x4196f6
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [edi + 0x18]
mov edx, ebp
mov eax, dword [eax + ebx]
call fcn.004168c0
mov eax, dword [edi + 0x18]
movzx ecx, byte [esp + 0x90]
mov edi, dword [esp + 0x50]
mov eax, dword [eax + ebx]
mov ebx, dword [esp + 0x20]
add edi, dword [eax + 0x14]
cmp dword [esp + 0x7c], ebp
mov byte [edi + 8], cl
movzx ecx, byte [esp + 0x60]
mov eax, edi
mov dword [edi], ebx
mov ebx, dword [esp + 0x34]
mov byte [edi + 9], cl
movzx ecx, byte [esp + 0x64]
mov dword [edi + 4], ebx
mov byte [edi + 0xa], cl
movzx ecx, byte [esp + 0x68]
mov byte [edi + 0xb], cl
movzx ecx, byte [esp + 0x91]
mov byte [edi + 0xc], cl
movzx ecx, byte [esp + 0x70]
mov byte [edi + 0xd], cl
movzx ecx, byte [esp + 0x92]
mov byte [edi + 0xe], cl
movzx ecx, byte [esp + 0x74]
mov byte [edi + 0xf], cl
jne 0x4196f6
mov edx, ebx
or edx, 0x80000000
mov dword [eax + 4], edx
jmp 0x4196f6
mov ecx, dword [esp + 0x24]
mov eax, 1
cmp dword [ecx], 0xdffe
jne 0x419449
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x106c]
cmp byte [edx], 0
jne 0x41949f
cmp byte [esp + 0x3b], 0
mov eax, 1
jne 0x41949f
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x20]
cmp dword [ecx], ebp
jne 0x41948b
and edi, 0xfffffff
cmp edi, dword [esp + 0x34]
jne 0x41948b
mov edi, dword [esp + 0x48]
movzx ecx, byte [esp + 0x90]
cmp cl, byte [edi + 8]
jne 0x41948b
movzx ecx, byte [esp + 0x60]
cmp byte [edi + 9], cl
jne 0x41948b
movzx ecx, byte [esp + 0x64]
cmp byte [edi + 0xa], cl
jne 0x41948b
movzx ecx, byte [esp + 0x68]
cmp byte [edi + 0xb], cl
jne 0x41948b
movzx ecx, byte [esp + 0x91]
cmp byte [edi + 0xc], cl
jne 0x41948b
movzx ecx, byte [esp + 0x70]
cmp byte [edi + 0xd], cl
jne 0x41948b
movzx ecx, byte [esp + 0x92]
cmp byte [edi + 0xe], cl
jne 0x41948b
movzx ecx, byte [esp + 0x74]
cmp byte [edi + 0xf], cl
jne 0x41948b
jmp 0x41949f
mov ecx, dword [esp + 0x2c]
movzx ebx, bl
mov edx, dword [ecx + 0x106c]
movzx ebx, word [edx + ebx*2 + 0xc]
jmp 0x419950
mov ecx, dword [esp + 0x2c]
movzx ebx, bl
mov edx, dword [ecx + 0x106c]
movzx ebx, word [edx + ebx*2 + 0x60c]
jmp 0x419950
movzx ecx, byte [esp + 0x60]
cmp byte [ebx + 9], cl
jne 0x41983a
movzx ecx, byte [esp + 0x64]
cmp byte [ebx + 0xa], cl
jne 0x41983a
movzx ecx, byte [esp + 0x68]
cmp byte [ebx + 0xb], cl
jne 0x41983a
movzx ecx, byte [esp + 0x91]
cmp byte [ebx + 0xc], cl
jne 0x41983a
movzx ecx, byte [esp + 0x70]
cmp byte [ebx + 0xd], cl
jne 0x41983a
movzx ecx, byte [esp + 0x92]
cmp byte [ebx + 0xe], cl
jne 0x41983a
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x104c]
movzx ecx, byte [esp + 0x74]
cmp byte [ebx + 0xf], cl
jne 0x41983a
mov eax, dword [esp + 0x34]
xor eax, dword [esp + 0x78]
test eax, edx
setne al
jmp 0x41983a
mov eax, dword [esp + 0x20]
xor al, al
mov dword [esp + 0x58], eax
jmp 0x419600
mov ebx, dword [esp + 0x20]
cmp eax, ebx
jg 0x4197c3
cmp byte [esp + 0x30], 0
mov edi, dword [esp + 0x2c]
jne 0x419c73
mov eax, dword [esp + 0x8c]
cmp byte [eax + 0xc], 0
jne 0x419d25
add dword [esp + 0x4c], 1
mov eax, dword [esp + 0x4c]
cmp dword [edi + 0x128], eax
jg 0x418c50
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.004cd6d0
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004cd6d0
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [esp + 0x90]
movzx edx, byte [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0xc], esi
mov byte [esp + 0x80], al
mov eax, dword [esp + 0x80]
shl edx, 0x10
mov ah, byte [esp + 0x60]
shl ecx, 0x18
movzx eax, ax
or edx, eax
mov eax, edx
or eax, ecx
movzx ecx, byte [esp + 0x91]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov byte [esp + 0x84], cl
mov ebx, dword [esp + 0x84]
mov bh, byte [esp + 0x70]
movzx ecx, byte [esp + 0x92]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
movzx edx, bx
mov ebx, dword [esp + 0x74]
shl ecx, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
or edx, ecx
shl ebx, 0x18
or ebx, edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], ebx
lea ecx, [edx + 0x18]
mov dword [esp], eax
mov eax, edi
call fcn.00418820
mov eax, dword [esp + 0x8c]
cmp byte [eax + 0xc], 0
je 0x419c3b
call fcn.00418a10
jmp 0x419c3b
cmp dword [ecx - 0x28], 0xdffe
jne 0x41945d
jmp 0x419a75
cmp dword [esp + 0x28], edx
setge al
jmp 0x419017
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x58], 0
mov eax, dword [eax + 0x14]
mov dword [esp + 0x40], eax
jmp 0x418ca3
shr ebx, 6
mov dword [esp + 0x98], 1
and ebx, 0xff8
jmp 0x418d9e
add dword [esp + 0xac], 1
lea eax, [esp + 0xbc]
mov ecx, dword [esp + 0xac]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004131f0
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x98], 0
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xa8], eax
jmp 0x418d9e
mov eax, dword [edi + 0x18]
mov esi, dword [esp + 0x4c]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x2c], eax
jmp 0x4192f7
cmp dword [edx + 0x14], 0xdfff
jne 0x418c05
or dword [edx + 0x18], 0x3ffff
jmp 0x418c05
cmp eax, 7
je 0x419f1e
cmp eax, 8
mov ebx, eax
je 0x41a06d
lea eax, [eax - 2]
or ebx, 0x20400
cmp eax, 1
ja 0x418d9e
mov eax, dword [esp + 0xa8]
mov dword [edi + 0x1144], 0
lea ebx, [eax + 8]
or ebx, 0x20400
jmp 0x418dc5
or dword [esp + 0x9c], 0x10000000
jmp 0x418b30
mov ebx, dword [ebp + 0x1144]
test ebx, ebx
jne 0x419f37
lea eax, [esp + 0xbc]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004131f0
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xa8], eax
jmp 0x418a6f
mov eax, ebx
call fcn.00418a10
jmp 0x418bb2
mov eax, dword [ebx + 0x14]
jmp 0x418b8a
mov esi, dword [ebp + 0x12c]
or dword [edx - 0x10], 0x3ffff
lea ecx, [esi - 1]
cmp ecx, eax
jle 0x418c05
jmp 0x419e03
xor eax, eax
cmp byte [ebp + 0x10e2], 0
sete al
shl eax, 0x1e
cmp byte [ebp + 0xae], 0
mov dword [esp + 0x9c], eax
je 0x418b30
jmp 0x419e61
mov ebx, 0x220500
jmp 0x419128
cmp dword [esp + 0x6c], eax
jne 0x418bd5
jmp 0x418c13
mov eax, dword [ebp + 0x128]
mov dword [esp], eax
call fcn.00413550
mov ecx, dword [ebp + 0x128]
test ecx, ecx
jle 0x41a013
mov dword [esp + 0x24], 0
nop
lea esi, [esi]
mov edx, dword [esp + 0x24]
add edx, dword [ebp + 0x10]
mov ecx, 0x1829
mov dword [esp], 0
mov eax, ebp
call fcn.00416fc0
cmp byte [eax + 0x18], 0
mov edi, eax
mov esi, dword [ebp + 0x12c]
je 0x419f8b
sub esi, 3
test esi, esi
jle 0x419ff1
lea eax, [esi - 1]
xor ebx, ebx
mov dword [esp + 0x20], eax
jmp 0x419fb6
movsx eax, al
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00413480
add ebx, 1
cmp esi, ebx
je 0x419ff1
test ebx, ebx
je 0x41a036
mov edx, dword [edi + 0x14]
lea eax, [ebx + ebx*4]
test byte [edi], 0x10
mov ecx, dword [ebp + 0x128]
lea eax, [edx + eax*4]
mov eax, dword [eax]
jne 0x419fa0
cmp dword [esp + 0x20], ebx
jne 0x419fa0
cmp al, 0x20
jne 0x419fa0
mov dword [esp + 4], 0xffffffa8
mov dword [esp], ecx
add ebx, 1
call fcn.00413480
cmp esi, ebx
jne 0x419fb6
cmp byte [edi + 0xc], 0
je 0x419ffe
mov eax, edi
call fcn.00418a10
add dword [esp + 0x24], 1
mov eax, dword [esp + 0x24]
cmp dword [ebp + 0x128], eax
jg 0x419f60
mov eax, dword [ebp + 0x12c]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
call fcn.00413930
jmp 0x419e7f
cmp byte [edi + 0x18], 0
je 0x419fba
mov eax, 4
mov dword [esp + 4], 0x20
mov edx, dword [ebp + 0x128]
mov dword [esp + 0x28], eax
mov dword [esp], edx
call fcn.00413480
mov eax, dword [esp + 0x28]
sub eax, 1
jne 0x41a045
jmp 0x419faf
mov ebx, 0x60500
jmp 0x419128
cmp dword [esp + 0x28], ecx
jge 0x4192a3
mov esi, dword [esp + 0x28]
lea edx, [esi + esi*4]
lea esi, [ebx + eax]
lea edx, [ebx + edx*4 + 4]
nop
or dword [edx], 0x3ffff
add edx, 0x14
cmp esi, edx
jne 0x41a090
mov edx, dword [ebx + eax]
jmp 0x4192a3