Function at 0x418047
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
push esi
push edi
lea edi, [ebp - 0xd8]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x464162
call fcn.00416aaf
mov byte [ebp - 0x11], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x41], 0
mov dword [ebp - 0x50], 0x45f000
mov byte [ebp - 0x7d], 0
mov byte [ebp - 0x89], 0
mov edi, dword [ebp + 0xc]
xor al, al
mov ecx, 0x25
rep stosb byte es:[edi], al
mov byte [ebp - 5], 0x10
jmp 0x417fa2
mov al, byte [ebp - 5]
sub al, 1
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
test eax, eax
je 0x41808d
mov eax, dword [ebp - 0x20]
mov cl, byte [eax]
mov byte [ebp - 0x11], cl
movzx edx, byte [ebp - 0x11]
mov dword [ebp - 0x190], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
sub edx, 0x26
mov dword [ebp - 0x194], edx
cmp dword [ebp - 0x194], 0xcd
ja case.0x418001.1
mov eax, dword [ebp - 0x194]
movzx ecx, byte [eax + 0x418b5c]
jmp dword [ecx*4 + 0x418b40]
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x11]
mov byte [eax + 1], cl
movzx eax, byte [ebp - 0x41]
or eax, 4
mov byte [ebp - 0x41], al
jmp 0x418088
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x11]
mov byte [eax + 1], cl
movzx eax, byte [ebp - 0x41]
or eax, 2
mov byte [ebp - 0x41], al
jmp 0x418088
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x11]
mov byte [eax + 2], cl
movzx eax, byte [ebp - 0x41]
or eax, 0x20
mov byte [ebp - 0x41], al
jmp 0x418088
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x11]
mov byte [eax + 3], cl
movzx eax, byte [ebp - 0x41]
or eax, 0x40
mov byte [ebp - 0x41], al
jmp 0x418088
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x11]
mov byte [eax + 4], cl
movzx eax, byte [ebp - 0x41]
or eax, 8
mov byte [ebp - 0x41], al
jmp 0x418088
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x11]
mov byte [eax + 5], cl
movzx eax, byte [ebp - 0x41]
or eax, 0x10
mov byte [ebp - 0x41], al
jmp 0x418088
jmp 0x41808d
jmp 0x417f9a
movzx eax, byte [ebp - 0x41]
shl eax, 0x17
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x21], eax
movzx eax, byte [ebp - 0x41]
test eax, eax
jne 0x4180ac
movzx eax, byte [ebp - 0x41]
or eax, 1
mov byte [ebp - 0x41], al
movzx eax, byte [ebp - 0x11]
and eax, 0xf0
cmp eax, 0x40
jne 0x418199
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x40000000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
movzx eax, byte [ebp - 0x11]
and eax, 0xf
sar eax, 3
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x190]
mov byte [ecx + 7], dl
movzx eax, byte [ebp - 0x190]
test eax, eax
je 0x418119
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax]
and ecx, 0xf8
cmp ecx, 0xb8
jne 0x418119
mov al, byte [ebp - 0x89]
add al, 1
mov byte [ebp - 0x89], al
movzx eax, byte [ebp - 0x11]
and eax, 7
sar eax, 2
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 8], al
movzx eax, byte [ebp - 0x11]
and eax, 3
sar eax, 1
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 9], al
movzx eax, byte [ebp - 0x11]
and eax, 1
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xa], al
mov eax, dword [ebp - 0x20]
mov cl, byte [eax]
mov byte [ebp - 0x11], cl
movzx edx, byte [ebp - 0x11]
and edx, 0xf0
mov dword [ebp - 0x190], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x190], 0x40
jne 0x41817b
mov dword [ebp - 0x194], 1
jmp 0x418185
mov dword [ebp - 0x194], 0
cmp dword [ebp - 0x194], 0
je 0x418199
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x35], al
jmp 0x418251
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x11]
mov byte [eax + 0xb], cl
movzx edx, byte [ebp - 0x11]
cmp edx, 0xf
jne 0x4181d0
mov eax, dword [ebp - 0x20]
mov cl, byte [eax]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp + 0xc]
mov al, byte [ebp - 0x11]
mov byte [edx + 0xc], al
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x50]
add eax, 0x4a
mov dword [ebp - 0x50], eax
jmp 0x418213
movzx eax, byte [ebp - 0x11]
cmp eax, 0xa0
jl 0x418213
movzx eax, byte [ebp - 0x11]
cmp eax, 0xa3
jg 0x418213
mov al, byte [ebp - 0x89]
add al, 1
mov byte [ebp - 0x89], al
movzx eax, byte [ebp - 0x41]
and eax, 0x10
je 0x418209
movzx eax, byte [ebp - 0x41]
or eax, 8
mov byte [ebp - 0x41], al
jmp 0x418213
movzx eax, byte [ebp - 0x41]
and eax, 0xfffffff7
mov byte [ebp - 0x41], al
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x35], al
movzx eax, byte [ebp - 0x35]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov ecx, dword [ebp - 0x50]
movzx edx, byte [ecx + eax]
movzx eax, byte [ebp - 0x35]
and eax, 0x80000003
jns 0x41823d
dec eax
or eax, 0xfffffffc
inc eax
add eax, dword [ebp - 0x50]
mov cl, byte [eax + edx]
mov byte [ebp - 0x29], cl
movzx eax, byte [ebp - 0x29]
cmp eax, 0xff
jne 0x41827b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x3000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov byte [ebp - 0x29], 0
movzx eax, byte [ebp - 0x35]
and eax, 0xfffffffd
cmp eax, 0x24
jne 0x41827b
mov al, byte [ebp - 0x29]
add al, 1
mov byte [ebp - 0x29], al
mov byte [ebp - 5], 0
movzx eax, byte [ebp - 0x29]
and eax, 0x80
je 0x4182b5
movzx eax, byte [ebp - 0x29]
and eax, 0x7f
mov ecx, dword [ebp - 0x50]
mov dx, word [ecx + eax]
mov word [ebp - 0x98], dx
mov al, byte [ebp - 0x98]
mov byte [ebp - 0x29], al
movzx eax, word [ebp - 0x98]
sar eax, 8
mov byte [ebp - 5], al
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xc]
test ecx, ecx
je 0x41830c
mov dword [ebp - 0x50], str.____AI____LB________ODS___DWC________________dfnk__jF__DF___D__
movzx eax, byte [ebp - 0x35]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov ecx, dword [ebp - 0x50]
movzx edx, byte [ecx + eax]
movzx eax, byte [ebp - 0x35]
and eax, 0x80000003
jns 0x4182eb
dec eax
or eax, 0xfffffffc
inc eax
add eax, dword [ebp - 0x50]
movzx ecx, byte [eax + edx]
movzx edx, byte [ebp - 0x41]
and ecx, edx
je 0x41830c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x3000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
movzx eax, byte [ebp - 0x29]
and eax, 1
je 0x41895f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp - 0x20]
mov cl, byte [eax]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp + 0xc]
mov al, byte [ebp - 0x11]
mov byte [edx + 0xd], al
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
movzx eax, byte [ebp - 0x11]
sar eax, 6
mov byte [ebp - 0x59], al
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x59]
mov byte [ecx + 0xe], dl
movzx eax, byte [ebp - 0x11]
and eax, 7
mov byte [ebp - 0x71], al
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x71]
mov byte [ecx + 0x10], dl
movzx eax, byte [ebp - 0x11]
and eax, 0x3f
sar eax, 3
mov byte [ebp - 0x65], al
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x65]
mov byte [ecx + 0xf], dl
movzx eax, byte [ebp - 5]
test eax, eax
je 0x4183a9
movzx eax, byte [ebp - 5]
movzx ecx, byte [ebp - 0x65]
shl eax, cl
and eax, 0x80
je 0x4183a9
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x3000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xc]
test ecx, ecx
jne 0x418459
movzx eax, byte [ebp - 0x35]
cmp eax, 0xd9
jl 0x418459
movzx eax, byte [ebp - 0x35]
cmp eax, 0xdf
jg 0x418459
movzx eax, byte [ebp - 0x35]
sub eax, 0xd9
mov byte [ebp - 0xa1], al
movzx eax, byte [ebp - 0x59]
cmp eax, 3
jne 0x418418
movzx eax, byte [ebp - 0xa1]
lea ecx, [eax*8 + 0x45f104]
mov dword [ebp - 0x50], ecx
movzx eax, byte [ebp - 0x65]
mov ecx, dword [ebp - 0x50]
movzx edx, byte [ecx + eax]
movzx ecx, byte [ebp - 0x71]
shl edx, cl
mov byte [ebp - 0xa1], dl
jmp 0x418439
mov dword [ebp - 0x50], 0x45f0fd
movzx eax, byte [ebp - 0xa1]
mov ecx, dword [ebp - 0x50]
movzx edx, byte [ecx + eax]
movzx ecx, byte [ebp - 0x65]
shl edx, cl
mov byte [ebp - 0xa1], dl
movzx eax, byte [ebp - 0xa1]
and eax, 0x80
je 0x418459
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x3000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
movzx eax, byte [ebp - 0x41]
and eax, 0x20
je 0x418565
movzx eax, byte [ebp - 0x59]
cmp eax, 3
jne 0x418486
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x9000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
jmp 0x418565
mov al, byte [ebp - 0x35]
mov byte [ebp - 0xb9], al
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xc]
test ecx, ecx
je 0x4184af
mov dword [ebp - 0x50], 0x45f1c6
mov eax, dword [ebp - 0x50]
add eax, 0x12
mov dword [ebp - 0xb0], eax
jmp 0x4184d2
mov dword [ebp - 0x50], 0x45f1ae
mov eax, dword [ebp - 0x50]
add eax, 0x18
mov dword [ebp - 0xb0], eax
movzx eax, byte [ebp - 0xb9]
and eax, 0xfffffffe
mov byte [ebp - 0xb9], al
jmp 0x4184dd
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0xb0]
je 0x418553
mov eax, dword [ebp - 0x50]
movzx ecx, byte [eax]
mov dword [ebp - 0x190], ecx
movzx edx, byte [ebp - 0xb9]
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x190]
cmp ecx, dword [ebp - 0x194]
jne 0x418524
mov dword [ebp - 0x198], 1
jmp 0x41852e
mov dword [ebp - 0x198], 0
cmp dword [ebp - 0x198], 0
je 0x418551
mov eax, dword [ebp - 0x50]
movzx edx, byte [eax]
movzx ecx, byte [ebp - 0x65]
shl edx, cl
and edx, 0x80
jne 0x41854f
jmp 0x418565
jmp 0x418553
jmp 0x4184d4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x9000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xc]
test ecx, ecx
je 0x4185e5
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x190]
sub ecx, 0x20
mov dword [ebp - 0x190], ecx
cmp dword [ebp - 0x190], 3
ja case.default.0x418598
mov edx, dword [ebp - 0x190]
jmp dword [edx*4 + 0x418c2c]
mov byte [ebp - 0x59], 3
movzx eax, byte [ebp - 0x65]
cmp eax, 4
jg 0x4185b5
movzx eax, byte [ebp - 0x65]
cmp eax, 1
jne 0x4185bc
jmp 0x418788
jmp 0x41879a
mov byte [ebp - 0x59], 3
movzx eax, byte [ebp - 0x65]
cmp eax, 4
je 0x4185d7
movzx eax, byte [ebp - 0x65]
cmp eax, 5
jne 0x4185de
jmp 0x418788
jmp 0x41879a
jmp 0x418635
mov al, byte [ebp - 0x35]
mov byte [ebp - 0x190], al
cmp byte [ebp - 0x190], 0x8c
je 0x418602
cmp byte [ebp - 0x190], 0x8e
je 0x418617
jmp 0x418635
movzx eax, byte [ebp - 0x65]
cmp eax, 5
jle 0x418612
jmp 0x418788
jmp 0x41879a
movzx eax, byte [ebp - 0x65]
cmp eax, 1
je 0x418629
movzx eax, byte [ebp - 0x65]
cmp eax, 5
jle 0x418630
jmp 0x418788
jmp 0x41879a
movzx eax, byte [ebp - 0x59]
cmp eax, 3
jne 0x418722
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xc]
test ecx, ecx
je 0x418662
mov dword [ebp - 0x50], 0x45f1e7
mov eax, dword [ebp - 0x50]
add eax, 0x2a
mov dword [ebp - 0xc8], eax
jmp 0x418675
mov dword [ebp - 0x50], 0x45f1d8
mov eax, dword [ebp - 0x50]
add eax, 0xf
mov dword [ebp - 0xc8], eax
jmp 0x418680
mov eax, dword [ebp - 0x50]
add eax, 2
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0xc8]
je 0x41871e
mov eax, dword [ebp - 0x50]
movzx ecx, byte [eax]
mov dword [ebp - 0x190], ecx
movzx edx, byte [ebp - 0x35]
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x190]
cmp ecx, dword [ebp - 0x194]
jne 0x4186c8
mov dword [ebp - 0x198], 1
jmp 0x4186d2
mov dword [ebp - 0x198], 0
cmp dword [ebp - 0x198], 0
je 0x418719
mov eax, dword [ebp - 0x50]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 0x41]
and ecx, edx
mov dword [ebp - 0x190], ecx
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x190], 0
je 0x418717
mov eax, dword [ebp - 0x50]
movzx edx, byte [eax]
movzx ecx, byte [ebp - 0x65]
shl edx, cl
and edx, 0x80
jne 0x418717
jmp 0x418788
jmp 0x41871e
jmp 0x418677
jmp 0x41879a
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + 0xc]
test ecx, ecx
je 0x418786
movzx eax, byte [ebp - 0x35]
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x190]
sub ecx, 0x50
mov dword [ebp - 0x190], ecx
cmp dword [ebp - 0x190], 0xa7
ja case.0x41875f.1
mov edx, dword [ebp - 0x190]
movzx eax, byte [edx + 0x418c4c]
jmp dword [eax*4 + 0x418c3c]
movzx eax, byte [ebp - 0x41]
and eax, 9
je 0x418771
jmp 0x418788
jmp case.0x41875f.1
movzx eax, byte [ebp - 0x41]
and eax, 6
je 0x41877e
jmp 0x418788
jmp case.0x41875f.1
jmp 0x418788
jmp 0x41879a
jmp 0x41879a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x11000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp - 0x20]
mov cl, byte [eax]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
movzx eax, byte [ebp - 0x65]
cmp eax, 1
jg 0x4187e0
movzx eax, byte [ebp - 0x35]
cmp eax, 0xf6
jne 0x4187cb
movzx eax, byte [ebp - 0x29]
or eax, 2
mov byte [ebp - 0x29], al
jmp 0x4187e0
movzx eax, byte [ebp - 0x35]
cmp eax, 0xf7
jne 0x4187e0
movzx eax, byte [ebp - 0x29]
or eax, 0x10
mov byte [ebp - 0x29], al
mov al, byte [ebp - 0x59]
mov byte [ebp - 0x190], al
cmp byte [ebp - 0x190], 0
je 0x418806
cmp byte [ebp - 0x190], 1
je 0x41882d
cmp byte [ebp - 0x190], 2
je 0x418833
jmp 0x418848
movzx eax, byte [ebp - 0x41]
and eax, 0x10
je 0x41881e
movzx eax, byte [ebp - 0x71]
cmp eax, 6
jne 0x41881c
mov byte [ebp - 0x7d], 2
jmp 0x41882b
movzx eax, byte [ebp - 0x71]
cmp eax, 5
jne 0x41882b
mov byte [ebp - 0x7d], 4
jmp 0x418848
mov byte [ebp - 0x7d], 1
jmp 0x418848
mov byte [ebp - 0x7d], 2
movzx eax, byte [ebp - 0x41]
and eax, 0x10
jne 0x418848
mov al, byte [ebp - 0x7d]
shl al, 1
mov byte [ebp - 0x7d], al
movzx eax, byte [ebp - 0x59]
cmp eax, 3
je 0x4188ca
movzx eax, byte [ebp - 0x71]
cmp eax, 4
jne 0x4188ca
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 2
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0x11]
mov byte [eax + 0x11], cl
movzx eax, byte [ebp - 0x11]
sar eax, 6
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x12], al
movzx eax, byte [ebp - 0x11]
and eax, 0x3f
sar eax, 3
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0x13], al
movzx eax, byte [ebp - 0x11]
and eax, 7
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x190]
mov byte [ecx + 0x14], dl
movzx eax, byte [ebp - 0x190]
cmp eax, 5
jne 0x4188ca
movzx eax, byte [ebp - 0x59]
and eax, 1
jne 0x4188ca
mov byte [ebp - 0x7d], 4
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
mov al, byte [ebp - 0x7d]
mov byte [ebp - 0x190], al
cmp byte [ebp - 0x190], 1
je 0x4188f9
cmp byte [ebp - 0x190], 2
je 0x418915
cmp byte [ebp - 0x190], 4
je 0x418936
jmp 0x418953
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x40
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx]
mov byte [eax + 0x1d], dl
jmp 0x418953
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x80
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx]
mov word [eax + 0x1d], dx
jmp 0x418953
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x100
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [eax + 0x1d], edx
movzx eax, byte [ebp - 0x7d]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
jmp 0x41897a
movzx eax, byte [ebp - 0x41]
and eax, 0x20
je 0x41897a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x9000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
movzx eax, byte [ebp - 0x29]
and eax, 0x10
je 0x418a31
movzx eax, byte [ebp - 0x29]
and eax, 0x40
je 0x4189cb
movzx eax, byte [ebp - 0x41]
and eax, 8
je 0x4189c6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x208
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx]
mov word [eax + 0x15], dx
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [ebp - 0x20], eax
jmp 0x418aeb
jmp 0x418a94
movzx eax, byte [ebp - 0x89]
test eax, eax
je 0x418a01
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x20
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [eax + 0x15], edx
mov dword [eax + 0x19], ecx
mov eax, dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 0x20], eax
jmp 0x418a31
movzx eax, byte [ebp - 0x41]
and eax, 8
jne 0x418a2f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x10
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [eax + 0x15], edx
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
jmp 0x418a31
jmp 0x418a3a
movzx eax, byte [ebp - 0x29]
and eax, 4
je 0x418a5f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 8
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx]
mov word [eax + 0x15], dx
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [ebp - 0x20], eax
movzx eax, byte [ebp - 0x29]
and eax, 2
je 0x418a8b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 4
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx]
mov byte [eax + 0x15], dl
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
movzx eax, byte [ebp - 0x29]
and eax, 0x40
je 0x418abc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x210
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [eax + 0x15], edx
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
jmp 0x418aeb
movzx eax, byte [ebp - 0x29]
and eax, 0x20
je 0x418aeb
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x204
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx]
mov byte [eax + 0x15], dl
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp + 8]
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 0x190]
mov byte [ecx], dl
movzx eax, byte [ebp - 0x190]
cmp eax, 0xf
jle 0x418b26
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x21]
or ecx, 0x5000
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x21], ecx
mov eax, dword [ebp + 0xc]
mov byte [eax], 0xf
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
pop edi
pop esi
pop ebx
add esp, 0x198
cmp ebp, esp
call fcn.00416776
mov esp, ebp
pop ebp
ret