Function at 0x41d950
Capabilities:
Check for software breakpoints
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using speck

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp ecx, 0x4000
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
jl 0x41d989
add ecx, 0xffffc000
mov eax, ecx
shl eax, 5
sub eax, ecx
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
lea esi, [ecx*4 + 0x54b6e0]
jmp 0x41d98b
xor esi, esi
mov edx, dword [esp + 0x2c]
cmp edx, edi
jle 0x41d9a7
mov ebp, edx
shl ebp, 7
add ebp, 0x521fc0
mov ecx, dword [ebp + 0x4c]
mov dword [esp + 0x14], ecx
jmp 0x41d9d4
cmp edx, 0xffffc000
jge 0x41d9b8
mov eax, 0xffffc000
sub eax, edx
jmp 0x41d9bc
mov eax, edx
neg eax
mov ebp, 0x521fc0
mov dword [esp + 0x14], eax
mov ecx, 0x20
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
shl ebx, 7
cmp byte [ebx + 0x522001], 3
je 0x41f78f
mov al, byte [ebx + 0x521ffd]
mov edi, 0x80000
and al, 4
cmp al, 4
jne 0x41dbb9
mov eax, dword [ebp + 0x50]
test al, 6
jne 0x41db96
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x1c], 1
test eax, eax
je 0x41da21
cmp dword [ebp + 0x58], 7
jbe 0x41dbb9
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
sub edx, eax
mov dword [ebp + 0xc], edx
mov dl, byte [ebp + 0x45]
neg eax
neg ecx
neg dl
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x1c], ecx
mov byte [ebp + 0x45], dl
mov eax, dword [0x58bbb0]
mov cl, al
sub al, 0x2c
add cl, 4
and eax, 0xff
and ecx, 0xff
mov eax, dword [eax + 0x58be00]
mov dword [0x58bbb0], ecx
mov edx, dword [ecx + 0x58be00]
xor edx, eax
and eax, 0x7fff
sub eax, 0x3fff
mov dword [ecx + 0x58be00], edx
mov edx, dword [ebp + 0x18]
shl eax, 4
sub eax, edx
cmp eax, 0xfff80000
mov dword [ebp + 0x18], eax
jge 0x41da97
mov dword [ebp + 0x18], 0xfff80000
jmp 0x41da9f
cmp dword [ebp + 0x18], edi
jle 0x41da9f
mov dword [ebp + 0x18], edi
mov ecx, dword [0x58bbb0]
xor edi, edi
mov al, cl
sub cl, 0x2c
add al, 4
and ecx, 0xff
and eax, 0xff
mov ecx, dword [ecx + 0x58be00]
mov dword [0x58bbb0], eax
mov edx, dword [eax + 0x58be00]
xor edx, ecx
and ecx, 7
add ecx, 8
mov dword [eax + 0x58be00], edx
test ecx, ecx
jle 0x41db2f
movsx edx, byte [ebp + 0x45]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
neg edx
push edx
push eax
push ecx
call fcn.0042f080
mov ecx, dword [0x58bbb0]
add esp, 0xc
mov al, cl
sub cl, 0x2c
add al, 4
and ecx, 0xff
and eax, 0xff
inc edi
mov ecx, dword [ecx + 0x58be00]
mov dword [0x58bbb0], eax
mov edx, dword [eax + 0x58be00]
xor edx, ecx
and ecx, 7
add ecx, 8
mov dword [eax + 0x58be00], edx
cmp edi, ecx
jl 0x41dadc
mov dl, al
sub al, 0x2c
add dl, 4
and eax, 0xff
and edx, 0xff
push 0
mov eax, dword [eax + 0x58be00]
mov ecx, edx
mov dword [0x58bbb0], ecx
push 0
mov edx, dword [ecx + 0x58be00]
xor edx, eax
and eax, 3
mov dword [ecx + 0x58be00], edx
mov ecx, dword [ebx + 0x521fd0]
mov eax, dword [eax*4 + str._t_n_v_f_____]
mov edx, dword [ebx + 0x521fcc]
push eax
push ecx
push edx
call fcn.00452de0
mov eax, dword [ebp + 0x54]
mov ecx, dword [esp + 0x28]
add esp, 0x14
inc eax
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], 0
jmp 0x41dbb9
test al, 4
jne 0x41dbb9
test edx, edx
jle 0x41dbb9
cmp edx, dword [0x49e230]
jae 0x41dbac
mov dword [0x49e230], edx
shl edx, 7
mov dword [edx + 0x521fc0], 0
mov dl, byte [ebx + 0x521ffd]
and dl, 3
cmp dl, 1
je 0x41f78f
cmp dl, 2
jne 0x41dbdc
mov byte [ebp + 0x41], 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov al, byte [ebx + 0x521ffe]
test al, al
jle 0x41dd23
cmp dl, 3
je 0x41dd23
mov dl, byte [ebx + 0x521ffa]
test dl, dl
jbe 0x41dcb1
cmp ecx, 3
jle 0x41dc0a
sub al, cl
jmp 0x41dc0c
sub al, 3
test al, al
mov byte [ebx + 0x521ffe], al
mov byte [ebx + 0x521ffa], 0
mov byte [ebx + 0x522006], 5
jg 0x41dd23
mov esi, dword [esp + 0x24]
xor edi, edi
push edi
push esi
mov byte [ebx + 0x521ffe], 0
call fcn.00401010
mov eax, dword [0x49e230]
add esp, 8
cmp esi, eax
jae 0x41dc4e
mov dword [0x49e230], esi
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x521fc0], edi
cmp eax, 0x4000
mov byte [ebp + 0x41], 0xa
jl 0x41f78f
cmp eax, 0x4020
jg 0x41f78f
mov dx, word [ebx + 0x522002]
cmp dx, di
je 0x41f78f
lea ecx, [eax - 0x4000]
and edx, 0xffff
mov eax, ecx
mov word [ebx + 0x522002], di
shl eax, 5
sub eax, ecx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
add dword [eax*4 + 0x54baec], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
sub al, cl
mov byte [ebx + 0x522006], 5
test al, al
mov byte [ebx + 0x521ffe], al
jg 0x41dd23
mov eax, dword [esp + 0x28]
mov byte [ebx + 0x521ffe], 0
cmp eax, 0x4000
mov byte [ebx + 0x522001], 3
mov dword [esp + 0x10], 1
jl 0x41dd23
cmp eax, 0x4020
jg 0x41dd23
mov di, word [ebx + 0x522002]
test di, di
je 0x41dd23
mov ecx, eax
and edi, 0xffff
mov word [ebx + 0x522002], 0
lea edx, [ecx - 0x4000]
mov eax, edx
shl eax, 5
sub eax, edx
lea eax, [eax + eax*2]
lea eax, [edx + eax*4]
add dword [eax*4 + 0x54baec], edi
mov edi, dword [ebp + 0x68]
cmp edi, 8
jne 0x41dd33
mov dword [esp + 0x1c], 1
mov cl, byte [ebx + 0x522000]
and cl, 0xf
cmp cl, 8
jne 0x41f576
mov cl, byte [ebx + 0x522004]
mov dword [esp + 0x18], 0
mov edx, ecx
and edx, 0xff
lea eax, [edx - 0x1b]
cmp eax, 0xcd
ja case.0x41dd71.79
xor edx, edx
mov dl, byte [eax + 0x41f86c]
jmp dword [edx*4 + 0x41f798]
mov byte [ebp + 0x41], 0xa
mov eax, dword [ebx + 0x522010]
test eax, eax
jle case.0x41dd71.79
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x41ddb9
mov cl, byte [ebp + 0x3a]
test cl, cl
je 0x41ddb9
mov al, byte [ebx + 0x522001]
mov byte [ebx + 0x521ffa], 0x23
cmp al, 0x17
je 0x41ddb0
mov byte [ebx + 0x522007], al
mov byte [ebx + 0x522001], 0x17
jmp 0x41ddf7
mov cl, byte [ebx + 0x521ffa]
test cl, cl
mov ecx, dword [esp + 0x14]
jbe 0x41ddef
cmp ecx, 3
jle 0x41dddd
sub eax, ecx
mov byte [ebx + 0x521ffa], 0
mov dword [ebx + 0x522010], eax
jmp 0x41ddf7
add eax, 0xfffffffd
mov byte [ebx + 0x521ffa], 0
mov dword [ebx + 0x522010], eax
jmp 0x41ddf7
sub eax, ecx
mov dword [ebx + 0x522010], eax
mov eax, dword [ebx + 0x522010]
mov byte [ebx + 0x522006], 5
cdq
and edx, 3
add eax, edx
sar eax, 2
test al, al
mov byte [ebx + 0x521ffe], al
jg case.0x41dd71.79
mov ecx, dword [esp + 0x28]
mov byte [ebx + 0x521ffe], 0
mov dword [ebx + 0x521fe4], 0
mov byte [ebx + 0x522001], 0x11
mov ax, word [0x514a72]
mov byte [ebx + 0x521ffd], 3
add ax, 5
mov word [ebx + 0x521ff4], ax
lea eax, [ecx + 0x4000]
cmp eax, 0x4000
jl case.0x41dd71.79
cmp eax, 0x4020
jg case.0x41dd71.79
mov dx, word [ebx + 0x522002]
test dx, dx
je case.0x41dd71.79
jmp 0x41f028
mov eax, dword [ebx + 0x522014]
test eax, eax
jne case.0x41dd71.79
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebx + 0x52201c]
imul eax, dword [esp + 0x14]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
add ecx, eax
mov dword [ebx + 0x52201c], ecx
jmp case.0x41dd71.79
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
imul eax, ecx
mov esi, dword [ebx + 0x52201c]
cdq
and edx, 0xff
add eax, edx
mov dl, byte [ebx + 0x521ffe]
sar eax, 8
sub dl, cl
add esi, eax
mov al, dl
mov dword [ebx + 0x52201c], esi
test al, al
mov byte [ebx + 0x521ffe], dl
jg case.0x41dd71.79
mov byte [ebx + 0x522001], 3
jmp case.0x41dd71.79
cmp byte [ebp + 0x44], 0x1a
je 0x41df11
cmp dword [esp + 0x2c], 0xffffc000
jge 0x41e827
cmp byte [ebx + 0x522001], 1
jne 0x41e827
mov byte [ebx + 0x521ffe], 0
mov byte [ebx + 0x522001], 3
mov dword [esp + 0x1c], 1
jmp case.0x41dd71.79
cmp byte [ebx + 0x522001], 0x11
je 0x41f78f
mov eax, dword [ebx + 0x521fc8]
mov ecx, dword [0x574b4c]
cdq
and edx, 0x1fffff
add eax, edx
mov esi, eax
mov eax, dword [ebx + 0x521fc4]
cdq
and edx, 0x1fffff
add eax, edx
sar eax, 0x15
sar esi, 0x15
cmp eax, ecx
jae 0x41df92
cmp esi, dword [0x574b50]
jae 0x41df92
mov ecx, dword [0x4d9d00]
mov edx, dword [ecx + esi*4]
mov eax, dword [edx + eax*4]
shr eax, 0x1b
and eax, 0xf
jmp 0x41df94
xor eax, eax
xor esi, esi
cmp eax, esi
jne 0x41dfb5
xor edx, edx
xor ecx, ecx
mov dx, word [0x514a6e]
mov cx, word [ebx + 0x521ff4]
inc edx
cmp ecx, edx
jne 0x41e035
cmp byte [ebp + 0x44], 0x1a
je 0x41e035
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xffffc000
jl 0x41e035
cmp ecx, esi
jle 0x41e1b3
cmp eax, edi
jne 0x41e1b3
mov al, byte [esp + 0x14]
mov cl, byte [ebx + 0x521ffe]
sub cl, al
mov al, cl
mov byte [ebx + 0x521ffe], cl
test al, al
jle 0x41e002
mov byte [ebx + 0x522001], 0xe
mov byte [ebp + 0x41], 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x28]
mov byte [ebx + 0x522001], 3
cmp eax, 0x4000
jl 0x41e1b3
cmp eax, 0x4020
jg 0x41e1b3
mov dx, word [ebx + 0x522002]
cmp dx, si
je 0x41e1b3
jmp 0x41e091
mov cl, byte [esp + 0x14]
mov dl, byte [ebx + 0x521ffe]
sub dl, cl
mov al, dl
mov byte [ebx + 0x521ffe], dl
test al, al
jle 0x41e060
mov byte [ebx + 0x522001], 0xe
mov byte [ebp + 0x41], 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x28]
mov byte [ebx + 0x522001], 3
cmp eax, 0x4000
jl 0x41e1b3
cmp eax, 0x4020
jg 0x41e1b3
mov dx, word [ebx + 0x522002]
cmp dx, si
je 0x41e1b3
lea ecx, [eax - 0x4000]
and edx, 0xffff
mov eax, ecx
mov word [ebx + 0x522002], si
shl eax, 5
sub eax, ecx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov ecx, dword [eax*4 + 0x54baec]
add ecx, edx
mov dword [eax*4 + 0x54baec], ecx
mov byte [ebp + 0x41], 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp byte [ebx + 0x522001], 0x11
je 0x41f78f
mov al, byte [ebp + 0x44]
cmp al, 0x2b
je 0x41e0f3
cmp al, 0x1a
je 0x41e0f3
cmp dword [esp + 0x2c], 0xffffc000
jge 0x41e1b3
mov cl, byte [ebx + 0x521ffe]
dec cl
mov al, cl
mov byte [ebx + 0x521ffe], cl
test al, al
jle 0x41e11a
mov byte [ebx + 0x522001], 0xe
mov byte [ebp + 0x41], 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x28]
mov byte [ebx + 0x522001], 3
cmp eax, 0x4000
jl 0x41e1b3
cmp eax, 0x4020
jg 0x41e1b3
mov dx, word [ebx + 0x522002]
test dx, dx
je 0x41e1b3
lea ecx, [eax - 0x4000]
and edx, 0xffff
mov eax, ecx
mov word [ebx + 0x522002], 0
shl eax, 5
sub eax, ecx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov ecx, dword [eax*4 + 0x54baec]
add ecx, edx
mov dword [eax*4 + 0x54baec], ecx
mov byte [ebp + 0x41], 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov al, byte [ebp + 0x44]
cmp al, 0x2b
je 0x41e196
cmp al, 0x1a
je 0x41e196
cmp dword [esp + 0x2c], 0xffffc000
jge 0x41e1b3
cmp byte [ebx + 0x522001], 1
jne 0x41e1b3
mov eax, dword [ebx + 0x521fe4]
test eax, eax
jne 0x41e1b3
mov dword [ebx + 0x521fe4], 1
mov byte [ebp + 0x41], 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov byte [ebx + 0x522001], 0x10
mov byte [ebx + 0x521ffd], 1
mov dword [esp + 0x18], 0x58
jmp case.0x41dd71.79
mov ecx, dword [ebp + 0x50]
and ecx, 2
cmp cl, 2
jne case.0x41dd71.79
mov byte [ebx + 0x521ffa], 0
mov byte [ebx + 0x521ffd], 1
jmp case.0x41dd71.79
cmp byte [ebx + 0x522001], 0xa
je case.0x41dd71.79
cmp dword [esp + 0x2c], 0xffffc000
jge 0x41e231
mov dword [ebx + 0x521fe4], 0x32
mov byte [ebx + 0x522001], 0xa
mov dword [esp + 0x10], 0
jmp case.0x41dd71.79
mov dword [ebx + 0x521fe4], 0
mov byte [ebx + 0x522001], 0xa
mov dword [esp + 0x10], 0
jmp case.0x41dd71.79
cmp dword [esp + 0x28], 0x4000
jl case.0x41dd71.79
mov eax, dword [ebx + 0x52201c]
mov cl, byte [eax + esi + 0x46c]
test cl, cl
jne 0x41e2dd
mov byte [eax + esi + 0x46c], 1
mov dword [esi + 0x144], eax
mov ecx, dword [esi + eax*4 + 0x444]
test ecx, ecx
jne 0x41e292
mov dword [esi + eax*4 + 0x444], 0x14
mov edx, dword [esp + 0x28]
push 1
push edx
call fcn.00434f00
lea ecx, [eax + 3]
add esp, 8
lea edx, [ecx + ecx*8]
push str.power_up
lea ecx, [ecx + edx*4]
lea edx, [eax + eax*8]
lea eax, [eax + edx*4]
mov dword [esi + ecx*4], 1
lea esi, [esi + eax*4]
lea ecx, [esi + 0x1d0]
push ecx
call fcn.0047aba0
add esp, 8
mov dword [esi + 0x1c0], 0
jmp 0x41e3cd
mov edi, dword [esi + eax*4 + 0x444]
add edi, 0x14
mov dword [esi + eax*4 + 0x444], edi
mov edx, dword [0x549ca8]
cmp edx, 1
mov ecx, edi
jle 0x41e3cd
cmp ecx, 0x32
jle 0x41e3cd
mov dword [esi + eax*4 + 0x444], 0x32
jmp 0x41e3cd
cmp dword [esp + 0x28], 0x4000
jl case.0x41dd71.79
mov al, byte [esi + 0x471]
test al, al
jne 0x41e39d
mov byte [esi + 0x471], 1
mov dword [esi + 0x144], 5
mov eax, dword [esi + 0x458]
test eax, eax
jne 0x41e355
mov dword [esi + 0x458], 0x280
mov edx, dword [esp + 0x28]
push 1
push edx
call fcn.00434f00
lea ecx, [eax + 3]
add esp, 8
lea edx, [ecx + ecx*8]
push str.power_up
lea ecx, [ecx + edx*4]
lea edx, [eax + eax*8]
lea eax, [eax + edx*4]
mov dword [esi + ecx*4], 1
lea esi, [esi + eax*4]
lea ecx, [esi + 0x1d0]
push ecx
call fcn.0047aba0
add esp, 8
mov dword [esi + 0x1c0], 0
jmp 0x41e3cd
mov edx, dword [esi + 0x458]
add edx, 0x280
mov dword [esi + 0x458], edx
mov ecx, dword [0x549ca8]
cmp ecx, 1
mov eax, edx
jle 0x41e3cd
cmp eax, 0x640
jle 0x41e3cd
mov dword [esi + 0x458], 0x640
mov dword [esp + 0x10], 2
mov dword [esp + 0x18], 0x58
mov byte [ebx + 0x521ffd], 1
jmp case.0x41dd71.79
cmp byte [ebx + 0x522001], 1
jne 0x41e827
mov byte [ebx + 0x522001], 0x1d
mov dword [esp + 0x1c], 1
jmp case.0x41dd71.79
mov eax, dword [esp + 0x2c]
test eax, eax
jle case.0x41dd71.79
test byte [ebp + 0x50], 6
je case.0x41dd71.79
mov al, byte [ebx + 0x521ffa]
test al, al
jbe case.0x41dd71.79
mov byte [ebx + 0x521ffa], 0
jmp case.0x41dd71.79
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x41e458
mov al, byte [ebp + 0x45]
neg al
movsx edx, al
mov byte [ebx + 0x522005], al
mov dword [ebx + 0x522024], edx
jmp 0x41e462
mov dword [ebx + 0x522024], 0
mov al, byte [ebx + 0x521ffe]
cmp al, 0xa
jge 0x41e4b2
mov eax, dword [0x58bbb0]
mov cl, al
add al, 4
sub cl, 0x2c
and eax, 0xff
and ecx, 0xff
mov edx, ecx
mov ecx, eax
mov dword [0x58bbb0], ecx
mov eax, dword [edx + 0x58be00]
mov esi, dword [ecx + 0x58be00]
xor esi, eax
and eax, 7
add eax, 4
mov dword [ecx + 0x58be00], esi
mov dword [ebx + 0x522020], eax
jmp case.0x41dd71.79
cmp al, 0x14
mov eax, dword [0x58bbb0]
jge 0x41e4fa
mov dl, al
add al, 4
sub dl, 0x2c
and eax, 0xff
and edx, 0xff
mov ecx, eax
mov dword [0x58bbb0], ecx
mov eax, dword [edx + 0x58be00]
mov esi, dword [ecx + 0x58be00]
xor esi, eax
and eax, 3
add eax, 4
mov dword [ecx + 0x58be00], esi
mov dword [ebx + 0x522020], eax
jmp case.0x41dd71.79
mov cl, al
add al, 4
sub cl, 0x2c
and eax, 0xff
and ecx, 0xff
mov edx, ecx
mov ecx, eax
mov dword [0x58bbb0], ecx
mov eax, dword [edx + 0x58be00]
mov esi, dword [ecx + 0x58be00]
xor esi, eax
and eax, 3
add eax, 2
mov dword [ecx + 0x58be00], esi
mov dword [ebx + 0x522020], eax
jmp case.0x41dd71.79
mov eax, dword [0x58bbb0]
mov esi, dword [esp + 0x2c]
mov dl, al
add al, 4
sub dl, 0x2c
and eax, 0xff
and edx, 0xff
mov edi, dword [eax + 0x58be00]
mov ecx, edx
mov ecx, dword [ecx + 0x58be00]
xor edi, ecx
and ecx, 1
inc ecx
mov dword [eax + 0x58be00], edi
mov dword [esp + 0x14], ecx
mov cl, al
add al, 4
sub cl, 0x2c
and eax, 0xff
and ecx, 0xff
mov dword [0x58bbb0], eax
mov edx, dword [eax + 0x58be00]
push 0
mov ecx, dword [ecx + 0x58be00]
push 0x16
xor edx, ecx
and ecx, 0x7fff
mov dword [eax + 0x58be00], edx
mov edx, dword [ebx + 0x521fd0]
mov eax, dword [ebx + 0x521fcc]
shl ecx, 5
sub edx, ecx
push edx
push eax
call fcn.00422070
add esp, 0x10
test eax, eax
jle 0x41e7a4
shl eax, 7
mov ecx, eax
test esi, esi
mov dword [ecx + 0x521fc0], 0x404670
mov dx, word [0x514acc]
mov word [ecx + 0x521ff4], dx
mov eax, dword [0x58bbb0]
mov dl, al
jle 0x41e642
sub dl, 0x2c
add al, 4
and edx, 0xff
and eax, 0xff
mov edi, edx
mov edx, eax
mov dword [0x58bbb0], edx
mov eax, dword [edi + 0x58be00]
mov edi, dword [edx + 0x58be00]
xor edi, eax
and eax, 0x7fff
mov dword [edx + 0x58be00], edi
movsx edx, byte [ebp + 0x45]
imul eax, edx
shl eax, 4
mov dword [ecx + 0x521fd4], eax
mov al, byte [ebp + 0x45]
mov byte [ecx + 0x522005], al
jmp 0x41e683
sub dl, 0x2c
add al, 4
and edx, 0xff
and eax, 0xff
mov edi, edx
mov edx, eax
mov dword [0x58bbb0], edx
mov eax, dword [edi + 0x58be00]
mov edi, dword [edx + 0x58be00]
xor edi, eax
and eax, 0x7fff
sub eax, 0x3fff
mov dword [edx + 0x58be00], edi
shl eax, 4
mov dword [ecx + 0x521fd4], eax
mov eax, dword [0x58bbb0]
mov dl, al
add al, 4
sub dl, 0x2c
and eax, 0xff
and edx, 0xff
mov edi, edx
mov edx, eax
mov dword [0x58bbb0], edx
mov eax, dword [edi + 0x58be00]
mov edi, dword [edx + 0x58be00]
xor edi, eax
and eax, 0x7fff
sub eax, 0x4000
mov dword [edx + 0x58be00], edi
shl eax, 4
mov dword [ecx + 0x521fd8], eax
mov eax, dword [0x58bbb0]
mov dl, al
add al, 4
sub dl, 0x2c
and eax, 0xff
and edx, 0xff
mov dword [0x58bbb0], eax
mov edi, dword [eax + 0x58be00]
mov edx, dword [edx + 0x58be00]
xor edi, edx
mov dword [eax + 0x58be00], edi
xor eax, eax
mov ax, word [ecx + 0x521ff4]
xor edi, edi
mov di, word [eax*8 + 0x520f40]
mov eax, edx
and eax, 0x1f
mov byte [ecx + 0x522001], 0x10
cdq
idiv edi
mov byte [ecx + 0x521ffc], dl
mov eax, dword [0x58bbb0]
mov dl, al
add al, 4
sub dl, 0x2c
and eax, 0xff
and edx, 0xff
mov edi, eax
mov dword [0x58bbb0], eax
mov edx, dword [edx + 0x58be00]
xor dword [edi + 0x58be00], edx
and edx, 3
cmp edx, 6
ja case.0x41e755.5
jmp dword [edx*4 + 0x41f93c]
mov dword [ecx + 0x522014], 0x124
jmp 0x41e7a9
mov dword [ecx + 0x522014], 0x125
jmp 0x41e7a9
mov dword [ecx + 0x522014], 0x126
jmp 0x41e7a9
mov dword [ecx + 0x522014], 0x127
jmp 0x41e7a9
mov dword [ecx + 0x522014], 0x128
jmp 0x41e7a9
mov dword [ecx + 0x522014], 0x129
jmp 0x41e7a9
mov eax, dword [0x58bbb0]
mov ecx, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x14], ecx
jns 0x41e574
jmp case.0x41dd71.79
mov dword [esp + 0x10], 2
mov byte [ebx + 0x522001], 0x10
mov byte [ebx + 0x521ffd], 1
jmp case.0x41dd71.79
mov byte [ebx + 0x522001], 0x10
mov dword [esp + 0x10], 0
mov byte [ebx + 0x521ffd], 1
jmp case.0x41dd71.79
cmp dword [esp + 0x28], 0x4000
jl case.0x41dd71.79
mov eax, dword [esi + 0x130]
test eax, eax
je 0x41e834
cmp dword [ebx + 0x522010], 0xffffffff
jne case.0x41dd71.79
mov byte [ebx + 0x522001], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 1
jmp case.0x41dd71.79
cmp byte [ebx + 0x522001], 1
jne case.0x41dd71.79
mov eax, dword [esp + 0x28]
mov byte [ebx + 0x521ffd], 1
mov byte [ebx + 0x522001], 0x10
mov dword [ebx + 0x522010], eax
mov dword [esi + 0x130], 1
mov dword [esp + 0x10], 0
jmp case.0x41dd71.79
cmp dword [esp + 0x28], 0x4000
jl 0x41ebd1
cmp dword [0x549ca8], 4
jne 0x41e8be
cmp dword [esi + 0x41c], 0x64
jl case.0x41dd71.79
mov eax, dword [esi + 0x57c]
test eax, eax
jne 0x41e8aa
mov ecx, dword [0x520f20]
mov dword [esi + 0x57c], ecx
mov eax, dword [esi + 0x594]
test eax, eax
jne 0x41e8be
mov dword [esi + 0x594], 1
mov byte [ebx + 0x522001], 0x10
mov eax, dword [0x574b64]
test eax, eax
jne 0x41ebd1
mov al, byte [esi + 0x3e]
test al, al
jle 0x41e98e
mov eax, dword [esi + 0x194]
test eax, eax
jle 0x41e98e
mov eax, dword [ebx + 0x522010]
test eax, eax
jne 0x41e969
mov edi, 0x574c3c
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x574b9c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [0x574b64], eax
mov dword [0x574b68], eax
jmp case.0x41dd71.79
cmp dword [esp + 0x28], 0x4000
jl 0x41ebd1
mov byte [ebx + 0x522001], 0x10
mov eax, dword [0x574b64]
test eax, eax
jne 0x41ebd1
mov al, byte [esi + 0x3e]
test al, al
jle 0x41e98e
mov eax, dword [esi + 0x194]
test eax, eax
jle 0x41e98e
mov edi, 0x574c5c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x574b9c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 1
mov dword [esp + 0x10], 0
mov dword [0x574b64], eax
mov dword [0x574b68], eax
jmp case.0x41dd71.79
cmp byte [ebx + 0x522001], 1
jne 0x41ebd1
mov eax, dword [esp + 0x28]
mov byte [ebx + 0x522001], 0x10
mov dword [ebx + 0x52200c], eax
mov dword [esp + 0x10], 0
jmp case.0x41dd71.79
cmp dword [esp + 0x28], 0x4000
jl case.0x41dd71.79
mov eax, dword [esi + 0x4b0]
mov ecx, 1
cmp eax, ecx
jne 0x41eaa7
mov eax, dword [esi + 0x4b4]
test eax, eax
jle 0x41eaa7
add eax, 0xaf0
mov dword [esi + 0x4b4], eax
jmp 0x41eab7
cmp dword [esp + 0x28], 0x4000
jl case.0x41dd71.79
mov eax, dword [esi + 0x4b0]
mov ecx, 2
cmp eax, ecx
jne 0x41ea48
mov eax, dword [esi + 0x4b4]
test eax, eax
jle 0x41ea48
add eax, 0xaf0
mov dword [esi + 0x4b4], eax
jmp 0x41ea58
mov dword [esi + 0x4b4], 0xaf0
mov dword [esi + 0x4b0], ecx
mov dword [esi + 0x144], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0x86
jmp case.0x41dd71.79
cmp dword [esp + 0x28], 0x4000
jl case.0x41dd71.79
mov eax, dword [esi + 0x4b0]
mov ecx, 3
cmp eax, ecx
jne 0x41eaa7
mov eax, dword [esi + 0x4b4]
test eax, eax
jle 0x41eaa7
add eax, 0xaf0
mov dword [esi + 0x4b4], eax
jmp 0x41eab7
mov dword [esi + 0x4b4], 0xaf0
mov dword [esi + 0x4b0], ecx
mov dword [esi + 0x144], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0x18], 0x86
jmp case.0x41dd71.79
cmp dword [esp + 0x28], 0x4000
jl case.0x41dd71.79
mov eax, dword [esi + 0x4b0]
mov ecx, 4
cmp eax, ecx
jne 0x41eb0a
mov eax, dword [esi + 0x4b4]
test eax, eax
jle 0x41eb0a
add eax, 0xaf0
mov dword [esi + 0x4b4], eax
jmp 0x41eb1a
mov dword [esi + 0x4b4], 0xaf0
mov dword [esi + 0x4b0], ecx
mov dword [esi + 0x144], 0
mov dword [esp + 0x10], 2
jmp case.0x41dd71.79
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x41ebd1
mov al, byte [ebx + 0x521ffe]
mov dword [ebx + 0x521fe4], 0x8c
test al, al
setg cl
dec ecx
mov dword [esp + 0x10], 0
and ecx, 0xfffffff5
add ecx, 0xe
mov byte [ebx + 0x522001], cl
jmp case.0x41dd71.79
mov al, byte [ebx + 0x522001]
cmp al, 0x1d
je 0x41eb9a
mov dl, byte [0x57c8de]
cmp al, 8
mov byte [ebx + 0x521ffe], dl
jne 0x41ebd1
mov byte [ebx + 0x522001], 0x16
mov dword [esp + 0x10], 0
jmp case.0x41dd71.79
mov al, byte [esp + 0x14]
mov dl, byte [ebx + 0x521ffe]
sub dl, al
mov byte [ebx + 0x522006], 5
mov al, dl
mov byte [ebx + 0x521ffe], dl
test al, al
jg 0x41ebd1
mov byte [ebx + 0x521ffe], 0
mov dword [ebx + 0x521fe4], 0
mov byte [ebx + 0x522001], 0x11
mov dword [esp + 0x10], 0
jmp case.0x41dd71.79
mov eax, dword [esp + 0x2c]
test eax, eax
jle case.0x41dd71.79
test byte [ebp + 0x50], 6
jne case.0x41dd71.79
mov edx, dword [ebx + 0x521fd4]
mov eax, dword [ebp + 0x14]
mov ecx, edx
xor esi, esi
sub ecx, eax
cmp ecx, esi
jle 0x41ec0b
mov eax, ecx
jmp 0x41ec0d
sub eax, edx
cmp eax, 0x10000
jle 0x41ec1a
mov dword [ebx + 0x521fe4], esi
mov byte [ebx + 0x521ffe], 3
mov ecx, dword [ebp + 0x14]
mov dword [ebx + 0x521fd4], ecx
mov byte [ebx + 0x522001], 0x10
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], 0x152
jmp case.0x41dd71.79
mov ecx, dword [ebp + 0x4c]
test ecx, ecx
je case.0x41dd71.79
mov eax, dword [ebp + 0x14]
imul eax, ecx
mov ecx, dword [ebx + 0x521fd4]
cdq
and edx, 7
add eax, edx
sar eax, 3
add ecx, eax
mov dword [ebx + 0x521fd4], ecx
jns 0x41ec7b
mov dword [ebx + 0x521fdc], 0xfffff000
jmp case.0x41dd71.79
mov dword [ebx + 0x521fdc], 0x1000
jmp case.0x41dd71.79
mov eax, dword [ebx + 0x52201c]
test eax, eax
jne case.0x41dd71.48
cmp byte [ebx + 0x522001], 3
jne case.0x41dd71.79
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], 0xffffffff
mov dword [ebx + 0x521ff0], edx
jmp case.0x41dd71.79
mov eax, dword [esp + 0x2c]
test eax, eax
jle case.0x41dd71.79
test byte [ebp + 0x50], 6
jne case.0x41dd71.79
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x1c], 1
test eax, eax
je 0x41ecec
cmp dword [ebp + 0x58], 7
ja 0x41ecec
mov byte [ebp + 0x41], 0xa
jmp case.0x41dd71.79
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov cl, byte [ebp + 0x45]
sub esi, eax
neg eax
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x1c]
neg eax
neg cl
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x1c], eax
mov byte [ebp + 0x45], cl
mov eax, dword [0x58bbb0]
mov dl, al
add al, 4
sub dl, 0x2c
and eax, 0xff
and edx, 0xff
mov ecx, eax
mov dword [0x58bbb0], ecx
mov eax, dword [edx + 0x58be00]
mov edx, dword [ecx + 0x58be00]
xor edx, eax
and eax, 0x7fff
sub eax, 0x3fff
mov dword [ecx + 0x58be00], edx
mov edx, dword [ebp + 0x18]
shl eax, 4
sub eax, edx
cmp eax, 0xfff80000
mov dword [ebp + 0x18], eax
jge 0x41ed64
mov dword [ebp + 0x18], 0xfff80000
jmp 0x41ed73
mov ecx, dword [ebp + 0x18]
mov eax, 0x80000
cmp ecx, eax
jle 0x41ed73
mov dword [ebp + 0x18], eax
mov eax, dword [0x58bbb0]
xor edi, edi
mov cl, al
add al, 4
sub cl, 0x2c
and eax, 0xff
and ecx, 0xff
mov dword [0x58bbb0], eax
mov esi, dword [eax + 0x58be00]
mov ecx, dword [ecx + 0x58be00]
xor esi, ecx
and ecx, 7
add ecx, 8
mov dword [eax + 0x58be00], esi
test ecx, ecx
jle 0x41ef75
movsx edx, byte [ebp + 0x45]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
neg edx
push edx
push eax
push ecx
call fcn.0042f080
mov eax, dword [0x58bbb0]
add esp, 0xc
mov dl, al
add al, 4
sub dl, 0x2c
and eax, 0xff
and edx, 0xff
inc edi
mov esi, dword [eax + 0x58be00]
mov ecx, edx
mov dword [0x58bbb0], eax
mov ecx, dword [ecx + 0x58be00]
xor esi, ecx
and ecx, 7
add ecx, 8
mov dword [eax + 0x58be00], esi
cmp edi, ecx
jl 0x41edb3
jmp 0x41ef75
mov eax, dword [ebp + 0x50]
mov edx, eax
and edx, 4
cmp dl, 4
je 0x41efc3
mov ecx, dword [esp + 0x2c]
cmp ecx, 0xffffc000
jl 0x41efc3
test ecx, ecx
jle case.0x41dd71.79
and eax, 2
cmp al, 2
je case.0x41dd71.79
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x1c], 1
test eax, eax
je 0x41ee5e
cmp dword [ebp + 0x58], 7
ja 0x41ee5e
mov byte [ebp + 0x41], 0xa
jmp case.0x41dd71.79
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov cl, byte [ebp + 0x45]
sub esi, eax
neg eax
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x1c]
neg eax
neg cl
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x1c], eax
mov byte [ebp + 0x45], cl
mov eax, dword [0x58bbb0]
mov dl, al
add al, 4
sub dl, 0x2c
and eax, 0xff
and edx, 0xff
mov ecx, eax
mov dword [0x58bbb0], ecx
mov eax, dword [edx + 0x58be00]
mov edx, dword [ecx + 0x58be00]
xor edx, eax
and eax, 0x7fff
sub eax, 0x3fff
mov dword [ecx + 0x58be00], edx
mov edx, dword [ebp + 0x18]
shl eax, 4
sub eax, edx
cmp eax, 0xfff80000
mov dword [ebp + 0x18], eax
jge 0x41eed6
mov dword [ebp + 0x18], 0xfff80000
jmp 0x41eee5
mov ecx, dword [ebp + 0x18]
mov eax, 0x80000
cmp ecx, eax
jle 0x41eee5
mov dword [ebp + 0x18], eax
mov eax, dword [0x58bbb0]
xor edi, edi
mov cl, al
add al, 4
sub cl, 0x2c
and eax, 0xff
and ecx, 0xff
mov dword [0x58bbb0], eax
mov esi, dword [eax + 0x58be00]
mov ecx, dword [ecx + 0x58be00]
xor esi, ecx
and ecx, 7
add ecx, 8
mov dword [eax + 0x58be00], esi
test ecx, ecx
jle 0x41ef75
movsx edx, byte [ebp + 0x45]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
neg edx
push edx
push eax
push ecx
call fcn.0042f080
mov eax, dword [0x58bbb0]
add esp, 0xc
mov dl, al
add al, 4
sub dl, 0x2c
and eax, 0xff
and edx, 0xff
inc edi
mov esi, dword [eax + 0x58be00]
mov ecx, edx
mov dword [0x58bbb0], eax
mov ecx, dword [ecx + 0x58be00]
xor esi, ecx
and ecx, 7
add ecx, 8
mov dword [eax + 0x58be00], esi
cmp edi, ecx
jl 0x41ef21
mov cl, al
sub al, 0x2c
add cl, 4
and eax, 0xff
and ecx, 0xff
push 0
mov eax, dword [eax + 0x58be00]
mov dword [0x58bbb0], ecx
mov edi, dword [ecx + 0x58be00]
push 0
xor edi, eax
and eax, 3
mov dword [ecx + 0x58be00], edi
mov ecx, dword [ebx + 0x521fcc]
mov edx, dword [eax*4 + str._t_n_v_f_____]
mov eax, dword [ebx + 0x521fd0]
push edx
push eax
push ecx
jmp 0x41f33b
mov al, byte [ebx + 0x521ffa]
test al, al
jbe 0x41eff7
mov esi, dword [esp + 0x24]
push 1
push esi
call fcn.00401010
mov eax, dword [0x49e230]
add esp, 8
cmp esi, eax
jae 0x41efeb
mov dword [0x49e230], esi
mov dword [ebx + 0x521fc0], 0
jmp 0x41effe
mov byte [ebx + 0x522001], 0x10
mov eax, dword [esp + 0x28]
cmp eax, 0x4000
jl case.0x41dd71.79
cmp eax, 0x4020
jg case.0x41dd71.79
mov dx, word [ebx + 0x522002]
test dx, dx
je case.0x41dd71.79
lea ecx, [eax - 0x4000]
and edx, 0xffff
mov eax, ecx
mov word [ebx + 0x522002], 0
shl eax, 5
sub eax, ecx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
add dword [eax*4 + 0x54baec], edx
jmp case.0x41dd71.79
cmp byte [ebx + 0x522001], 0xd
jne case.0x41dd71.79
mov byte [ebx + 0x522001], 0xe
mov eax, dword [ebp + 0x14]
cdq
sub eax, edx
mov dword [ebx + 0x521fd8], 0x8000
sar eax, 1
mov dword [ebx + 0x521fd4], eax
mov dword [ebx + 0x521fe4], 0
mov byte [ebx + 0x521ffc], 0
mov byte [ebx + 0x521ffd], 1
jmp case.0x41dd71.79
cmp dword [ebx + 0x522024], 1
jne 0x41f10e
mov ecx, dword [ebx + 0x521fd0]
mov edx, dword [ebx + 0x521fcc]
push 0
sub ecx, 0x40000
push 0xe2
push ecx
push edx
mov dword [ebx + 0x522024], 0
call fcn.00422070
add esp, 0x10
test eax, eax
jle 0x41f10e
mov cl, byte [ebx + 0x522005]
shl eax, 7
add eax, 0x521fc0
mov byte [eax + 0x45], cl
mov byte [eax + 0x41], 8
mov ecx, dword [ebx + 0x522020]
mov dword [eax + 0x18], 0xffffc000
mov dword [eax + 0x60], ecx
mov dword [eax + 0x5c], ecx
movsx edx, byte [ebx + 0x522005]
shl edx, 0xe
mov dword [eax + 0x14], edx
mov al, byte [ebx + 0x522001]
cmp al, 3
je case.0x41dd71.79
cmp al, 0x13
je case.0x41dd71.79
movsx eax, byte [ebx + 0x522005]
shl eax, 0x10
mov byte [ebx + 0x522001], 0x13
mov dword [ebx + 0x521fd4], eax
mov dword [ebx + 0x521fd8], 0x8000
mov dword [ebx + 0x521fe4], 0
mov byte [ebx + 0x521ffc], 0
jmp case.0x41dd71.79
mov al, byte [ebx + 0x522001]
cmp al, 0x1c
je 0x41f1a3
cmp al, 0xe
je 0x41f1a3
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x41f17e
mov cl, byte [ebp + 0x4c]
mov al, byte [ebx + 0x521ffe]
sub al, cl
jmp 0x41f186
mov al, byte [ebx + 0x521ffe]
dec al
cmp al, 1
mov byte [ebx + 0x521ffe], al
jge 0x41f197
mov byte [ebx + 0x521ffe], 1
mov byte [ebx + 0x522006], 5
jmp case.0x41dd71.79
mov eax, dword [esp + 0x2c]
test eax, eax
jle case.0x41dd71.79
test byte [ebp + 0x50], 6
jne case.0x41dd71.79
mov eax, dword [ebp + 0x54]
mov dword [esp + 0x1c], 1
test eax, eax
je 0x41f1d7
cmp dword [ebp + 0x58], 7
ja 0x41f1d7
mov byte [ebp + 0x41], 0xa
jmp case.0x41dd71.79
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
sub edx, eax
neg eax
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 0x1c]
mov dword [ebp + 0x14], eax
mov al, byte [ebp + 0x45]
neg edx
neg al
mov dword [ebp + 0x1c], edx
mov byte [ebp + 0x45], al
mov eax, dword [0x58bbb0]
mov cl, al
add al, 4
sub cl, 0x2c
and eax, 0xff
and ecx, 0xff
mov edx, ecx
mov ecx, eax
mov dword [0x58bbb0], ecx
mov eax, dword [edx + 0x58be00]
mov edx, dword [ecx + 0x58be00]
xor edx, eax
and eax, 0x7fff
sub eax, 0x3fff
mov dword [ecx + 0x58be00], edx
mov edx, dword [ebp + 0x18]
shl eax, 4
sub eax, edx
cmp eax, 0xfff80000
mov dword [ebp + 0x18], eax
jge 0x41f251
mov dword [ebp + 0x18], 0xfff80000
jmp 0x41f260
mov ecx, dword [ebp + 0x18]
mov eax, 0x80000
cmp ecx, eax
jle 0x41f260
mov dword [ebp + 0x18], eax
mov eax, dword [0x58bbb0]
xor edi, edi
mov dl, al
add al, 4
sub dl, 0x2c
and eax, 0xff
and edx, 0xff
mov dword [0x58bbb0], eax
mov esi, dword [eax + 0x58be00]
mov ecx, edx
mov ecx, dword [ecx + 0x58be00]
xor esi, ecx
and ecx, 7
add ecx, 8
mov dword [eax + 0x58be00], esi
test ecx, ecx
jle 0x41f2f0
movsx eax, byte [ebp + 0x45]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
neg eax
push eax
push ecx
push edx
call fcn.0042f080
mov eax, dword [0x58bbb0]
add esp, 0xc
mov cl, al
add al, 4
sub cl, 0x2c
and eax, 0xff
and ecx, 0xff
inc edi
mov esi, dword [eax + 0x58be00]
mov dword [0x58bbb0], eax
mov ecx, dword [ecx + 0x58be00]
xor esi, ecx
and ecx, 7
add ecx, 8
mov dword [eax + 0x58be00], esi
cmp edi, ecx
jl 0x41f29e
mov dl, al
sub al, 0x2c
add dl, 4
and eax, 0xff
and edx, 0xff
push 0
mov eax, dword [eax + 0x58be00]
mov ecx, edx
mov dword [0x58bbb0], ecx
push 0
mov edx, dword [ecx + 0x58be00]
xor edx, eax
and eax, 3
mov dword [ecx + 0x58be00], edx
mov ecx, dword [ebx + 0x521fd0]
mov eax, dword [eax*4 + str._t_n_v_f_____]
mov edx, dword [ebx + 0x521fcc]
push eax
push ecx
push edx
call fcn.00452de0
mov eax, dword [ebp + 0x54]
add esp, 0x14
inc eax
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x54], eax
jmp case.0x41dd71.79
mov al, byte [ebx + 0x521ffe]
test al, al
jl case.0x41dd71.79
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x41f371
sub al, byte [ebp + 0x4c]
jmp 0x41f373
dec al
test al, al
mov byte [ebx + 0x521ffe], al
mov byte [ebx + 0x522006], 5
jge case.0x41dd71.79
mov byte [ebx + 0x521ffe], 0
mov dword [ebx + 0x521fe4], 0
mov byte [ebx + 0x522001], 0x11
mov dword [esp + 0x10], 2
jmp case.0x41dd71.79
mov byte [ebx + 0x522001], 0xe
jmp case.0x41dd71.79
mov al, byte [ebx + 0x522001]
cmp al, 3
je case.0x41dd71.79
cmp al, 0x10
je 0x41f3da
mov dword [esp + 0x18], 0xaa
mov byte [ebx + 0x522001], 0x10
mov ecx, dword [esp + 0x2c]
mov byte [ebx + 0x521ffa], 0
mov eax, dword [0x520f20]
mov dword [ebx + 0x522014], 0xff
and eax, 7
mov dword [ebx + 0x521fe4], eax
or eax, 0xffffffff
test ecx, ecx
mov dword [ebx + 0x522010], eax
jle case.0x41dd71.79
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jle 0x41f420
mov byte [ebx + 0x522005], al
jmp case.0x41dd71.79
mov byte [ebx + 0x522005], 1
jmp case.0x41dd71.79
cmp byte [ebx + 0x522001], 1
jne case.0x41dd71.79
cmp dword [esp + 0x28], 0x4000
jl case.0x41dd71.79
mov byte [ebx + 0x522001], 0xe
mov al, byte [ebp + 0x45]
test al, al
jle 0x41f461
mov dword [ebx + 0x522014], 0xfffffff8
jmp 0x41f46b
mov dword [ebx + 0x522014], 8
mov esi, dword [ebx + 0x521fd0]
mov eax, dword [0x574b44]
cmp esi, eax
jle 0x41f48f
mov eax, dword [ebx + 0x522014]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebx + 0x522014], eax
mov edx, dword [esp + 0x28]
cmp cl, 0xc1
mov dword [ebx + 0x521ff0], edx
jne case.0x41dd71.79
mov eax, dword [ebx + 0x521fcc]
push 0
push 0
push 0x12a
push esi
push eax
call fcn.00452de0
add esp, 0x14
jmp case.0x41dd71.79
cmp dword [esp + 0x28], 0x4000
jl case.0x41dd71.79
mov ecx, dword [ebx + 0x521fd0]
mov edx, dword [ebx + 0x521fcc]
push 0
push 0
push 0x5e
push ecx
push edx
mov byte [ebx + 0x522001], 3
mov dword [esp + 0x24], 2
call fcn.00452de0
mov dword [esi + 0x4c8], 0x834
mov al, byte [ebx + 0x522004]
add esp, 0x14
cmp al, 0x5e
mov dword [esp + 0x18], 0x3c
jne 0x41f523
mov eax, dword [esp + 0x28]
push 7
add eax, 0xffffc000
push eax
jmp 0x41f54b
mov ecx, dword [esp + 0x28]
add ecx, 0xffffc000
mov eax, ecx
shl eax, 5
sub eax, ecx
lea edx, [eax + eax*2]
lea eax, [ecx + edx*4]
cmp dword [eax*4 + 0x54bba0], 0x31
jne 0x41f548
push 0x4b
jmp 0x41f54a
push 0x31
push ecx
call fcn.004388f0
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41f576
mov ecx, dword [ebx + 0x521fd0]
mov edx, dword [ebx + 0x521fcc]
push 0
push 0
push eax
push ecx
push edx
call fcn.00452de0
add esp, 0x14
mov edi, dword [esp + 0x10]
test edi, edi
je 0x41f652
mov esi, dword [esp + 0x28]
cmp esi, 0x4000
jl 0x41f5cb
cmp esi, 0x4020
jg 0x41f5cb
mov dx, word [ebx + 0x522002]
test dx, dx
je 0x41f5cb
lea ecx, [esi - 0x4000]
and edx, 0xffff
mov eax, ecx
mov word [ebx + 0x522002], 0
shl eax, 5
sub eax, ecx
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
add dword [eax*4 + 0x54baec], edx
cmp edi, 1
jg 0x41f619
test esi, esi
jle 0x41f619
mov eax, dword [esp + 0x2c]
test eax, eax
jl 0x41f607
mov edx, dword [0x514a40]
xor ecx, ecx
mov cx, word [ebp + 0x34]
and edx, 0xffff
add edx, 0xf
cmp ecx, edx
jne 0x41f607
mov edi, dword [esp + 0x24]
push 5
push edi
push esi
call fcn.0041d220
add esp, 0xc
jmp 0x41f61d
mov edi, dword [esp + 0x24]
push 0xa
push edi
push esi
call fcn.0041d220
add esp, 0xc
jmp 0x41f61d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x10], 1
jl 0x41f652
mov al, byte [ebp + 0x50]
push 0
test al, 2
je 0x41f649
mov eax, dword [ebx + 0x521fd0]
mov ecx, dword [ebx + 0x521fcc]
push 0
push 0x3d
push eax
push ecx
call fcn.00452de0
add esp, 0x14
push 1
push edi
call fcn.0042f190
add esp, 8
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x41f78f
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x41f78f
mov al, byte [ebp + 0x44]
mov byte [ebp + 0x41], 0xa
cmp al, 0x13
jne 0x41f712
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
push 0
push 0x4d
push edx
push eax
call fcn.00452de0
mov eax, dword [0x58bbb0]
add esp, 0x14
mov cl, al
add al, 4
sub cl, 0x2c
and eax, 0xff
and ecx, 0xff
mov edx, ecx
mov ecx, eax
mov dword [0x58bbb0], ecx
mov eax, dword [edx + 0x58be00]
mov esi, dword [ecx + 0x58be00]
xor esi, eax
and eax, 7
inc eax
mov dword [ecx + 0x58be00], esi
mov esi, eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
push 0x16
push edx
push eax
call fcn.00422070
add esp, 0x10
test eax, eax
jle 0x41f78f
mov ecx, dword [0x514a40]
shl eax, 7
add ecx, 0x49
dec esi
mov word [eax + 0x521ff4], cx
mov byte [eax + 0x521fff], 1
mov byte [eax + 0x521ffb], 2
jne 0x41f6ca
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp byte [ebp + 0x44], 0x11
jne 0x41f78f
mov eax, dword [0x58bbb0]
mov dl, al
add al, 4
sub dl, 0x2c
and eax, 0xff
and edx, 0xff
mov ecx, eax
mov dword [0x58bbb0], ecx
mov eax, dword [edx + 0x58be00]
mov esi, dword [ecx + 0x58be00]
xor esi, eax
and eax, 7
inc eax
mov dword [ecx + 0x58be00], esi
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0
push 0x18
push eax
push ecx
call fcn.00422070
add esp, 0x10
test eax, eax
jle 0x41f78f
mov dx, word [0x514ab6]
shl eax, 7
add dx, 0x5c
dec esi
mov word [eax + 0x521ff4], dx
mov byte [eax + 0x521fff], 1
mov byte [eax + 0x521ffb], 2
jne 0x41f751
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret