Function at 0x405e30
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Hash data using crc32b
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x498
mov eax, dword [0x552064]
xor eax, esp
mov dword [esp + 0x494], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x64], 0
call fcn.00402260
test eax, eax
je 0x408128
mov al, byte [edi + 0x55c]
test al, 2
jne 0x405e96
mov dword [edi + 0x61], 0x22
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
test al, 4
jne 0x405e79
test al, 1
jne 0x405e79
cmp dword [edi + 0x459], 1
jne 0x405e79
cmp byte [edi + 0x45d], 0x1e
jne 0x405e79
mov eax, dword [edi + 0x20]
test eax, eax
je 0x405ef4
cmp eax, dword [edi + 0x28]
jae 0x405f06
mov cl, byte [eax]
inc eax
mov dword [edi + 0x20], eax
cmp cl, 1
jne 0x405e79
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x405f12
lea edx, [ecx + 6]
cmp edx, dword [edi + 0x28]
ja 0x40811a
mov eax, dword [ecx]
mov dword [esp + 0x494], eax
mov ax, word [ecx + 4]
mov word [esp + 0x498], ax
mov dword [edi + 0x20], edx
jmp 0x405f32
push dword [edi + 0x14]
call fcn.00501d00
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
jne 0x405ec2
mov dword [edi + 0x5d], 1
jmp 0x405e79
push dword [edi + 0x14]
lea eax, [esp + 0x498]
push 1
push 6
push eax
call fcn.0050248a
add esp, 0x10
cmp eax, 1
jne 0x40811a
mov edx, str.vorbis
lea ecx, [esp + 0x494]
mov eax, dword [ecx]
mov esi, 2
cmp eax, dword [edx]
jne 0x405f54
add ecx, 4
mov esi, 0xfffffffe
add edx, 4
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x405f7b
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x405f7b
cmp esi, 0xfffffffe
je 0x405f77
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x405f7b
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x405f7b
xor eax, eax
jmp 0x405f80
sbb eax, eax
or eax, 1
test eax, eax
jne 0x405e79
mov ecx, edi
call fcn.00401f00
test eax, eax
jne 0x405e79
mov eax, dword [edi + 0x20]
test eax, eax
je 0x405fab
cmp eax, dword [edi + 0x28]
jae 0x405fbd
mov cl, byte [eax]
inc eax
mov dword [edi + 0x20], eax
jmp 0x405fc6
push dword [edi + 0x14]
call fcn.00501d00
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
jne 0x405fc6
xor cl, cl
mov dword [edi + 0x5d], 1
movzx eax, cl
mov dword [edi + 4], eax
test cl, cl
je 0x405e79
cmp eax, 0x10
jbe 0x405ff6
mov dword [edi + 0x61], 5
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00401f00
mov dword [edi], eax
test eax, eax
je 0x405e79
mov ecx, edi
call fcn.00401f00
mov ecx, edi
call fcn.00401f00
mov ecx, edi
call fcn.00401f00
mov eax, dword [edi + 0x20]
test eax, eax
je 0x406030
cmp eax, dword [edi + 0x28]
jae 0x406042
mov cl, byte [eax]
inc eax
mov dword [edi + 0x20], eax
jmp 0x40604b
push dword [edi + 0x14]
call fcn.00501d00
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
jne 0x40604b
xor cl, cl
mov dword [edi + 0x5d], 1
movzx esi, cl
mov eax, 1
mov edx, esi
shr esi, 4
and edx, 0xf
mov ecx, edx
shl eax, cl
mov ecx, esi
mov dword [edi + 0x6d], eax
mov eax, 1
shl eax, cl
mov dword [edi + 0x71], eax
cmp edx, 6
jb 0x40611a
cmp edx, 0xd
ja 0x40611a
lea eax, [esi - 6]
cmp eax, 7
ja 0x40611a
cmp edx, esi
ja 0x40611a
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4060ac
cmp eax, dword [edi + 0x28]
jae 0x405f06
mov cl, byte [eax]
inc eax
mov dword [edi + 0x20], eax
jmp 0x4060c2
push dword [edi + 0x14]
call fcn.00501d00
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
je 0x405f06
test cl, 1
je 0x405e79
mov ecx, edi
call fcn.00402260
test eax, eax
je 0x408128
mov ecx, edi
call fcn.00402330
test eax, eax
je 0x408128
mov ecx, edi
call fcn.00405b20
mov ecx, edi
call fcn.00402330
test eax, eax
je 0x408128
cmp byte [edi + 0x30], 0
je 0x406137
mov ecx, edi
call fcn.00405990
test eax, eax
jne 0x406137
cmp dword [edi + 0x61], 0x15
jne 0x408128
mov dword [edi + 0x61], 0x14
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
xor edi, edi
nop dword [eax]
mov eax, edi
shl eax, 0x18
cmp eax, 0x80000000
sbb ecx, ecx
add eax, eax
and ecx, 0xfb3ee249
add ecx, 0x4c11db7
xor ecx, eax
cmp ecx, 0x80000000
sbb edx, edx
and edx, 0xfb3ee249
lea eax, [ecx + ecx]
add edx, 0x4c11db7
xor edx, eax
cmp edx, 0x80000000
sbb ecx, ecx
and ecx, 0xfb3ee249
lea eax, [edx + edx]
add ecx, 0x4c11db7
xor ecx, eax
cmp ecx, 0x80000000
sbb edx, edx
and edx, 0xfb3ee249
lea eax, [ecx + ecx]
add edx, 0x4c11db7
xor edx, eax
cmp edx, 0x80000000
sbb ecx, ecx
and ecx, 0xfb3ee249
lea eax, [edx + edx]
add ecx, 0x4c11db7
xor ecx, eax
cmp ecx, 0x80000000
sbb edx, edx
and edx, 0xfb3ee249
lea eax, [ecx + ecx]
add edx, 0x4c11db7
xor edx, eax
cmp edx, 0x80000000
sbb esi, esi
and esi, 0xfb3ee249
lea eax, [edx + edx]
add esi, 0x4c11db7
xor esi, eax
cmp esi, 0x80000000
sbb ecx, ecx
and ecx, 0xfb3ee249
lea eax, [esi + esi]
add ecx, 0x4c11db7
xor ecx, eax
mov dword [edi*4 + 0x564738], ecx
inc edi
cmp edi, 0x100
jl 0x406140
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.00402570
mov dword [edi + 0x56f], 0
cmp eax, 5
jne 0x40611a
xor esi, esi
nop
mov ecx, edi
call fcn.00402570
mov byte [esp + esi + 0x494], al
inc esi
mov dword [edi + 0x56f], 0
cmp esi, 6
jl 0x406240
mov edx, str.vorbis
lea ecx, [esp + 0x494]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40611a
movzx eax, word [ecx + 4]
cmp ax, word [edx + 4]
jne 0x40611a
mov edx, 8
mov ecx, edi
call fcn.00402640
mov edx, dword [edi + 0x4d]
inc eax
mov dword [edi + 0x75], eax
imul eax, eax, 0x830
add dword [edi + 8], eax
test edx, edx
je 0x4062b8
mov ecx, dword [edi + 0x55]
add eax, ecx
cmp eax, dword [edi + 0x59]
jg 0x4080f6
mov dword [edi + 0x55], eax
lea eax, [ecx + edx]
jmp 0x4062c9
test eax, eax
je 0x4080f6
push eax
call fcn.00501e08
add esp, 4
mov dword [edi + 0x79], eax
lea esi, [edi + 0x79]
mov dword [esp + 0x34], esi
test eax, eax
je 0x4080fd
imul ecx, dword [edi + 0x75], 0x830
push ecx
push 0
push eax
call fcn.004fdf60
xor eax, eax
add esp, 0xc
mov dword [esp + 0x10], eax
cmp dword [edi + 0x75], eax
jle 0x4070b4
movsd xmm0, qword [0x545970]
movsd qword [esp + 0x40], xmm0
nop dword [eax + eax]
mov esi, dword [esi]
mov edx, 8
imul ecx, eax, 0x830
mov dword [esp + 0x14], 0
add esi, ecx
mov ecx, edi
mov dword [esp + 0x30], esi
call fcn.00402640
cmp al, 0x42
jne 0x40611a
mov edx, 8
mov ecx, edi
call fcn.00402640
cmp al, 0x43
jne 0x40611a
mov edx, 8
mov ecx, edi
call fcn.00402640
cmp al, 0x56
jne 0x40611a
mov edx, 8
mov ecx, edi
call fcn.00402640
mov edx, 8
mov byte [esp + 0xf], al
mov ecx, edi
call fcn.00402640
movzx ecx, byte [esp + 0xf]
mov edx, 8
shl eax, 8
add eax, ecx
mov ecx, edi
mov dword [esi], eax
call fcn.00402640
mov edx, 8
mov byte [esp + 0xe], al
mov ecx, edi
call fcn.00402640
mov edx, 8
mov byte [esp + 0xf], al
mov ecx, edi
call fcn.00402640
movzx ecx, byte [esp + 0xf]
mov edx, 1
shl eax, 8
add eax, ecx
movzx ecx, byte [esp + 0xe]
shl eax, 8
add eax, ecx
mov ecx, edi
mov dword [esi + 4], eax
call fcn.00402640
mov dword [esp + 0x24], eax
test eax, eax
je 0x4063e5
xor ecx, ecx
jmp 0x4063f3
mov edx, 1
mov ecx, edi
call fcn.00402640
mov ecx, eax
cmp dword [esi], 0
mov byte [esi + 0x17], cl
jne 0x406405
cmp dword [esi + 4], 0
jne 0x40611a
mov eax, dword [esi + 4]
mov edx, dword [edi + 0x4d]
add eax, 3
and eax, 0xfffffffc
test cl, cl
je 0x406443
test edx, edx
je 0x406432
mov ecx, dword [edi + 0x59]
sub ecx, eax
cmp ecx, dword [edi + 0x55]
jl 0x4080fd
add edx, ecx
mov dword [edi + 0x59], ecx
mov dword [esp + 0x18], edx
jmp 0x406479
push eax
call fcn.00501e08
mov edx, eax
add esp, 4
mov dword [esp + 0x18], edx
jmp 0x406479
add dword [edi + 8], eax
test edx, edx
je 0x40645b
mov ecx, dword [edi + 0x55]
add eax, ecx
cmp eax, dword [edi + 0x59]
jg 0x406470
mov dword [edi + 0x55], eax
add edx, ecx
jmp 0x406472
test eax, eax
je 0x406470
push eax
call fcn.00501e08
add esp, 4
mov dword [esp + 0x18], eax
mov edx, eax
jmp 0x406476
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esi + 8], edx
test edx, edx
je 0x4080fd
cmp dword [esp + 0x24], 0
je 0x406505
xor ecx, ecx
mov dword [esp + 0x1c], ecx
lea edx, [ecx + 5]
mov ecx, edi
call fcn.00402640
mov ecx, dword [esi + 4]
inc eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
test ecx, ecx
jle 0x4064ff
mov eax, dword [esp + 0x1c]
nop dword [eax]
sub ecx, eax
call fcn.00401460
mov edx, eax
mov ecx, edi
call fcn.00402640
mov ecx, dword [esp + 0x1c]
lea edx, [eax + ecx]
mov dword [esp + 0x24], edx
cmp edx, dword [esi + 4]
jg 0x40611a
push eax
mov eax, dword [esp + 0x1c]
push dword [esp + 0x24]
add eax, ecx
push eax
call fcn.004fdf60
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [esi + 4]
inc dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
cmp eax, ecx
jl 0x4064b0
mov edx, dword [esp + 0x18]
jmp 0x406573
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], ecx
test ecx, ecx
jle 0x406573
cmp byte [esi + 0x17], 0
je 0x40653c
mov edx, 1
mov ecx, edi
call fcn.00402640
test eax, eax
jne 0x40653c
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov byte [eax + edx], 0xff
jmp 0x406563
mov edx, 5
mov ecx, edi
call fcn.00402640
mov edx, dword [esp + 0x18]
inc al
mov ecx, dword [esp + 0x1c]
inc dword [esp + 0x14]
mov byte [ecx + edx], al
cmp al, 0x20
je 0x40611a
mov eax, ecx
mov ecx, dword [esi + 4]
inc eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
cmp eax, ecx
jl 0x406518
mov al, byte [esi + 0x17]
test al, al
je 0x40661b
mov eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jl 0x40668e
cmp ecx, dword [edi + 0x10]
jle 0x406598
mov dword [edi + 0x10], ecx
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0x4d]
add ecx, 3
and ecx, 0xfffffffc
add dword [edi + 8], ecx
test edx, edx
je 0x4065bd
mov eax, dword [edi + 0x55]
add ecx, eax
cmp ecx, dword [edi + 0x59]
jg 0x406e95
mov dword [edi + 0x55], ecx
add eax, edx
jmp 0x4065ce
test ecx, ecx
je 0x406e95
push ecx
call fcn.00501e08
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x406e9c
push dword [esi + 4]
push dword [esp + 0x1c]
push eax
call fcn.004fd9e0
add esp, 0xc
cmp dword [edi + 0x4d], 0
je 0x4065fd
mov eax, dword [esi + 4]
add eax, 3
and eax, 0xfffffffc
add dword [edi + 0x59], eax
jmp 0x406609
push dword [esp + 0x18]
call fcn.00501c9e
add esp, 4
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
mov dword [esp + 0x18], edx
mov byte [esi + 0x17], 0
mov dword [esp + 0x28], eax
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x28], eax
jle 0x406656
nop dword [eax]
mov cl, byte [eax + edx]
mov byte [esp + 0xe], cl
cmp cl, 0xa
mov ecx, dword [esp + 0x14]
jbe 0x40664c
cmp byte [esp + 0xe], 0xff
je 0x40664c
inc ecx
mov dword [esp + 0x14], ecx
inc eax
cmp eax, dword [esp + 0x28]
jl 0x406630
mov al, byte [esi + 0x17]
mov dword [esi + 0x82c], ecx
mov dword [esp + 0x14], 0
test al, al
jne 0x40669f
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x4d]
shl eax, 2
add dword [edi + 8], eax
test ecx, ecx
je 0x4066d2
mov edx, dword [edi + 0x55]
add eax, edx
cmp eax, dword [edi + 0x59]
jg 0x406eb9
mov dword [edi + 0x55], eax
lea eax, [ecx + edx]
jmp 0x4066e3
mov al, byte [esi + 0x17]
test al, al
je 0x40661b
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x82c], ecx
xor eax, eax
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x406782
mov edx, dword [edi + 0x4d]
add ecx, 3
and ecx, 0xfffffffc
add dword [edi + 8], ecx
test edx, edx
je 0x4066f3
mov eax, dword [edi + 0x55]
add ecx, eax
cmp ecx, dword [edi + 0x59]
jg 0x406edd
mov dword [edi + 0x55], ecx
add eax, edx
jmp 0x406704
test eax, eax
je 0x406eb9
push eax
call fcn.00501e08
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x406ec0
jmp 0x406796
test ecx, ecx
je 0x406f25
push ecx
call fcn.00501e08
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x406f4f
mov ecx, dword [esi + 0x82c]
mov edx, dword [edi + 0x4d]
shl ecx, 2
test edx, edx
je 0x406734
mov eax, dword [edi + 0x59]
sub eax, ecx
cmp eax, dword [edi + 0x55]
jl 0x406f01
mov dword [edi + 0x59], eax
add eax, edx
jmp 0x40673d
push ecx
call fcn.00501e08
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x4080fd
mov ecx, dword [esi + 0x82c]
mov edx, dword [edi + 0x4d]
shl ecx, 2
test edx, edx
je 0x40676d
mov eax, dword [edi + 0x59]
sub eax, ecx
cmp eax, dword [edi + 0x55]
jl 0x4080fd
mov dword [edi + 0x59], eax
add eax, edx
jmp 0x406776
push ecx
call fcn.00501e08
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x4080fd
mov edx, dword [esi + 0x82c]
mov ecx, dword [esi + 4]
lea eax, [ecx + edx*8]
cmp eax, dword [edi + 0x10]
jbe 0x406796
mov dword [edi + 0x10], eax
push dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, esi
push dword [esi + 4]
call fcn.004014f0
add esp, 8
test eax, eax
je 0x40707f
mov eax, dword [esi + 0x82c]
test eax, eax
je 0x40687b
mov edx, dword [edi + 0x4d]
lea eax, [eax*4 + 7]
and eax, 0xfffffffc
add dword [edi + 8], eax
test edx, edx
je 0x4067eb
mov ecx, dword [edi + 0x55]
add eax, ecx
cmp eax, dword [edi + 0x59]
jg 0x406f6c
mov dword [edi + 0x55], eax
lea eax, [edx + ecx]
jmp 0x4067fc
test eax, eax
je 0x406f6c
push eax
call fcn.00501e08
add esp, 4
mov dword [esi + 0x824], eax
test eax, eax
je 0x406f76
mov eax, dword [esi + 0x82c]
mov edx, dword [edi + 0x4d]
lea eax, [eax*4 + 7]
and eax, 0xfffffffc
add dword [edi + 8], eax
test edx, edx
je 0x40683a
mov ecx, dword [edi + 0x55]
add eax, ecx
cmp eax, dword [edi + 0x59]
jg 0x406f45
mov dword [edi + 0x55], eax
lea eax, [ecx + edx]
jmp 0x40684b
test eax, eax
je 0x406f45
push eax
call fcn.00501e08
add esp, 4
mov dword [esi + 0x828], eax
test eax, eax
je 0x406f4f
push dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add eax, 4
mov dword [esi + 0x828], eax
mov ecx, esi
mov dword [eax - 4], 0xffffffff
call fcn.00401750
add esp, 4
cmp byte [esi + 0x17], 0
je 0x40690f
cmp dword [edi + 0x4d], 0
je 0x4068b1
mov eax, dword [esi + 0x82c]
shl eax, 2
add dword [edi + 0x59], eax
mov eax, dword [esi + 0x82c]
shl eax, 2
add dword [edi + 0x59], eax
mov eax, dword [esi + 4]
add eax, 3
and eax, 0xfffffffc
add dword [edi + 0x59], eax
jmp 0x406908
push dword [esp + 0x14]
call fcn.00501c9e
add esp, 4
cmp dword [edi + 0x4d], 0
je 0x4068dd
mov eax, dword [esi + 0x82c]
shl eax, 2
add dword [edi + 0x59], eax
mov eax, dword [esi + 4]
add eax, 3
and eax, 0xfffffffc
add dword [edi + 0x59], eax
jmp 0x406908
push dword [esi + 0x20]
call fcn.00501c9e
add esp, 4
cmp dword [edi + 0x4d], 0
je 0x4068fc
mov eax, dword [esi + 4]
add eax, 3
and eax, 0xfffffffc
add dword [edi + 0x59], eax
jmp 0x406908
push dword [esp + 0x18]
call fcn.00501c9e
add esp, 4
mov dword [esi + 0x20], 0
or eax, 0xffffffff
lea edi, [esi + 0x24]
mov ecx, 0x200
rep stosd dword es:[edi], eax
cmp byte [esi + 0x17], 0
je 0x40692a
mov ecx, dword [esi + 0x82c]
jmp 0x40692d
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], ecx
cmp ecx, 0x7fff
jle 0x406944
mov ecx, 0x7fff
mov dword [esp + 0x1c], ecx
jmp 0x40694c
test ecx, ecx
jle 0x406a20
mov eax, dword [esi + 8]
xor edx, edx
mov dword [esp + 0x2c], edx
cmp byte [eax + edx], 0xa
ja 0x406a13
cmp byte [esi + 0x17], 0
je 0x4069d6
mov eax, dword [esi + 0x824]
mov ecx, dword [eax + edx*4]
mov edx, ecx
shr edx, 1
lea eax, [ecx + ecx]
xor edx, eax
lea eax, [ecx + ecx]
and edx, 0x55555555
xor edx, eax
mov ecx, edx
shr ecx, 2
lea eax, [edx*4]
xor ecx, eax
lea eax, [edx*4]
and ecx, 0x33333333
xor ecx, eax
mov edx, ecx
mov eax, ecx
shr edx, 4
shl eax, 4
xor edx, eax
shl ecx, 4
and edx, 0xf0f0f0f
xor edx, ecx
mov edi, edx
mov eax, edx
shr edi, 8
shl eax, 8
xor edi, eax
shl edx, 8
and edi, 0xff00ff
xor edi, edx
mov edx, dword [esp + 0x2c]
rol edi, 0x10
jmp 0x4069dc
mov eax, dword [esi + 0x20]
mov edi, dword [eax + edx*4]
cmp edi, 0x400
jae 0x406a0c
nop dword [eax]
nop dword [eax + eax]
mov word [esi + edi*2 + 0x24], dx
mov eax, 1
mov ecx, dword [esi + 8]
mov cl, byte [ecx + edx]
shl eax, cl
add edi, eax
cmp edi, 0x400
jb 0x4069f0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
inc edx
mov dword [esp + 0x2c], edx
cmp edx, ecx
jl 0x406955
mov edi, dword [esp + 0x38]
mov edx, 4
mov ecx, edi
call fcn.00402640
mov byte [esi + 0x15], al
cmp al, 2
ja 0x40611a
test al, al
je 0x406e7a
mov edx, 0x20
mov ecx, edi
call fcn.00402640
mov ecx, eax
mov edx, eax
and ecx, 0x1fffff
shr edx, 0x15
and edx, 0x3ff
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x545940]
test eax, eax
jns 0x406a7f
xorps xmm0, xmmword [esp + 0x40]
cvtsd2ss xmm0, xmm0
lea eax, [edx - 0x314]
push eax
sub esp, 8
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0050108e
add esp, 0xc
mov edx, 0x20
mov ecx, edi
fstp dword [esi + 0xc]
call fcn.00402640
mov ecx, eax
mov edx, eax
and ecx, 0x1fffff
shr edx, 0x15
and edx, 0x3ff
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x545940]
test eax, eax
jns 0x406add
xorps xmm0, xmmword [esp + 0x40]
cvtsd2ss xmm0, xmm0
lea eax, [edx - 0x314]
push eax
sub esp, 8
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0050108e
add esp, 0xc
mov edx, 4
mov ecx, edi
fstp dword [esi + 0x10]
call fcn.00402640
inc al
mov edx, 1
mov ecx, edi
mov byte [esi + 0x14], al
call fcn.00402640
cmp byte [esi + 0x15], 1
mov byte [esi + 0x16], al
jne 0x406bd6
mov edi, dword [esi]
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [esi + 4]
cvtps2pd xmm0, xmm0
call fcn.005222b0
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, edi
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
call fcn.00521fd0
cvtsd2ss xmm0, xmm0
sub esp, 8
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
fstp qword [esp]
call fcn.00523360
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
xorps xmm1, xmm1
cvtpd2ps xmm0, xmm0
cvtsi2sd xmm1, edi
cvttss2si esi, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, esi
addss xmm0, dword [0x545498]
cvtps2pd xmm0, xmm0
call fcn.00522540
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
fstp qword [esp]
call fcn.00523360
mov ecx, dword [esp + 0x38]
lea edx, [esi + 1]
mov edi, dword [esp + 0x40]
add esp, 8
fstp qword [esp + 0x58]
cvttsd2si eax, qword [esp + 0x58]
cmp eax, dword [ecx + 4]
cmovg edx, esi
mov esi, ecx
jmp 0x406bdc
mov edx, dword [esi]
imul edx, dword [esi + 4]
mov dword [esi + 0x18], edx
test edx, edx
je 0x40611a
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], ecx
lea edx, [eax*2 + 3]
and edx, 0xfffffffc
cmp dword [edi + 0x4d], 0
je 0x406c17
mov eax, dword [edi + 0x59]
sub eax, edx
cmp eax, dword [edi + 0x55]
jl 0x4080fd
mov dword [edi + 0x59], eax
add eax, dword [edi + 0x4d]
jmp 0x406c24
push edx
call fcn.00501e08
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x4080fd
mov edx, dword [ecx]
mov dword [esp + 0x30], 0
test edx, edx
jle 0x406c6f
nop
movzx edx, byte [esi + 0x14]
mov ecx, edi
call fcn.00402640
cmp eax, 0xffffffff
je 0x406f93
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov word [edx + ecx*2], ax
inc ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov edx, dword [eax]
cmp ecx, edx
jl 0x406c40
cmp byte [esi + 0x15], 1
xorps xmm0, xmm0
movss dword [esp + 0x20], xmm0
jne 0x406df3
mov al, byte [esi + 0x17]
mov byte [esp + 0xf], al
test al, al
je 0x406ca2
mov eax, dword [esi + 0x82c]
test eax, eax
je 0x406dd1
mov edx, dword [esi]
imul edx, eax
jmp 0x406ca8
mov edx, dword [esi]
imul edx, dword [esi + 4]
shl edx, 2
mov ecx, edi
call fcn.00401420
mov dword [esi + 0x1c], eax
test eax, eax
je 0x407023
mov dl, byte [esp + 0xf]
test dl, dl
je 0x406ccd
mov eax, dword [esi + 0x82c]
jmp 0x406cd0
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
test eax, eax
jle 0x406dcd
movss xmm1, dword [esp + 0x20]
test dl, dl
je 0x406cfb
mov eax, dword [esi + 0x828]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x30], eax
jmp 0x406d01
mov eax, ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esi]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0
test ecx, ecx
jle 0x406dba
nop dword [eax + eax]
xor edx, edx
mov edi, dword [esp + 0x14]
div dword [esp + 0x1c]
xor edx, edx
imul ecx, dword [esp + 0x28]
div dword [edi]
mov edi, dword [esp + 0x18]
movzx eax, word [edi + edx*2]
mov edx, dword [esp + 0x20]
add ecx, edx
mov edi, dword [esp + 0x38]
movd xmm0, eax
mov eax, dword [esi + 0x1c]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esi + 0x10]
addss xmm0, dword [esi + 0xc]
addss xmm0, xmm1
movss dword [eax + ecx*4], xmm0
cmp byte [esi + 0x16], 0
je 0x406d71
movss dword [esp + 0x20], xmm0
movaps xmm1, xmm0
mov ecx, dword [esi]
inc edx
mov dword [esp + 0x20], edx
cmp edx, ecx
jge 0x406dac
mov eax, dword [esp + 0x14]
xor edx, edx
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
or eax, 0xffffffff
div dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
cmp edx, eax
ja 0x406fef
mov eax, dword [esp + 0x2c]
imul eax, edx
mov edx, dword [esp + 0x20]
cmp edx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
jl 0x406d20
mov dl, byte [esp + 0xf]
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x24]
jl 0x406ce8
mov byte [esi + 0x15], 2
mov ecx, dword [esp + 0x14]
cmp dword [edi + 0x4d], 0
je 0x406e6e
mov eax, dword [ecx]
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
add dword [edi + 0x59], eax
jmp 0x406e7a
shl edx, 2
mov ecx, edi
call fcn.00401420
mov dword [esi + 0x1c], eax
test eax, eax
je 0x407023
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp dword [ecx], edx
jle 0x406dd5
movss xmm1, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
nop dword [eax]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
movzx eax, word [edi + edx*2]
movd xmm0, eax
mov eax, dword [esi + 0x1c]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esi + 0x10]
addss xmm0, dword [esi + 0xc]
addss xmm0, xmm1
movss dword [eax + edx*4], xmm0
cmp byte [esi + 0x16], 0
je 0x406e58
movss dword [esp + 0x20], xmm0
movaps xmm1, xmm0
inc edx
cmp edx, dword [ecx]
jl 0x406e20
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x34], eax
jmp 0x406dd5
push dword [esp + 0x18]
call fcn.00501c9e
add esp, 4
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 0x75]
jge 0x4070b4
mov esi, dword [esp + 0x34]
jmp 0x406310
mov dword [esi + 8], 0
mov dword [edi + 0x61], 3
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x20], 0
mov dword [edi + 0x61], 3
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov dword [esi + 8], 0
xor eax, eax
mov dword [edi + 0x61], 3
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x20], 0
xor eax, eax
mov dword [edi + 0x61], 3
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov dword [esi + 8], eax
xor eax, eax
mov dword [edi + 0x61], 3
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x828], 0
mov dword [edi + 0x61], 3
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x824], 0
mov dword [edi + 0x61], 3
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x4d], 0
je 0x406fc6
mov eax, dword [esi + 0x18]
mov dword [edi + 0x61], 0x14
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
add dword [edi + 0x59], eax
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
push dword [esp + 0x18]
call fcn.00501c9e
add esp, 4
mov dword [edi + 0x61], 0x14
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x4d], 0
je 0x406fc6
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x61], 0x14
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
add dword [edi + 0x59], eax
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x4d], 0
je 0x407056
mov eax, dword [esi + 0x18]
mov dword [edi + 0x61], 3
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
add dword [edi + 0x59], eax
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
push dword [esp + 0x18]
call fcn.00501c9e
add esp, 4
mov dword [edi + 0x61], 3
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x17], 0
je 0x407097
cmp dword [edi + 0x4d], 0
jne 0x407097
push dword [esp + 0x14]
call fcn.00501c9e
add esp, 4
mov dword [edi + 0x61], 0x14
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
xor esi, esi
mov ecx, edi
lea edx, [esi + 6]
call fcn.00402640
add al, 1
movzx eax, al
mov dword [esp + 0x10], eax
je 0x4070eb
nop dword [eax + eax]
mov edx, 0x10
mov ecx, edi
call fcn.00402640
test eax, eax
jne 0x40611a
inc esi
cmp esi, dword [esp + 0x10]
jl 0x4070d0
mov edx, 6
mov ecx, edi
call fcn.00402640
mov edx, dword [edi + 0x4d]
inc eax
mov dword [edi + 0x7d], eax
imul eax, eax, 0x639
add eax, 3
and eax, 0xfffffffc
add dword [edi + 8], eax
test edx, edx
je 0x407127
mov ecx, dword [edi + 0x55]
add eax, ecx
cmp eax, dword [edi + 0x59]
jg 0x4080cf
mov dword [edi + 0x55], eax
lea eax, [edx + ecx]
jmp 0x407138
test eax, eax
je 0x4080cf
push eax
call fcn.00501e08
add esp, 4
mov dword [edi + 0x101], eax
test eax, eax
je 0x4080d9
cmp dword [edi + 0x7d], 0
mov dword [esp + 0x14], 0
jle 0x40752b
lea esi, [edi + 0x81]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], esi
nop word [eax + eax]
mov edx, 0x10
mov ecx, edi
call fcn.00402640
movzx eax, ax
mov word [esi], ax
cmp eax, 1
ja 0x40611a
mov esi, dword [edi + 0x101]
mov ecx, edi
add esi, dword [esp + 0x1c]
mov dword [esp + 0x24], esi
test ax, ax
je 0x40756e
mov edx, 5
mov dword [esp + 0x20], 0xffffffff
call fcn.00402640
mov byte [esi], al
mov dword [esp + 0x10], 0
test al, al
je 0x407218
mov ecx, dword [esp + 0x20]
nop dword [eax + eax]
mov esi, ecx
mov edx, 4
mov ecx, edi
call fcn.00402640
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov byte [ecx + edx + 1], al
movzx ecx, al
mov eax, dword [esp + 0x34]
cmp ecx, esi
mov dword [esp + 0x34], eax
cmovle ecx, esi
mov esi, dword [esp + 0x24]
inc edx
mov dword [esp + 0x10], edx
movzx eax, byte [esi]
cmp edx, eax
jl 0x4071d0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], eax
jmp 0x40721b
or ecx, 0xffffffff
mov dword [esp + 0x30], 0
test ecx, ecx
js 0x40730b
lea eax, [esi + 0x31]
mov dword [esp + 0x28], eax
lea eax, [esi + 0x51]
mov dword [esp + 0x2c], eax
nop dword [eax]
mov edx, 3
mov ecx, edi
call fcn.00402640
mov ecx, dword [esp + 0x28]
inc al
mov edx, 2
mov byte [ecx - 0x10], al
mov ecx, edi
call fcn.00402640
mov ecx, dword [esp + 0x28]
mov byte [ecx], al
test al, al
je 0x40728a
mov edx, 8
mov ecx, edi
call fcn.00402640
mov ecx, dword [esp + 0x28]
mov byte [ecx + 0x10], al
movzx eax, al
cmp eax, dword [edi + 0x75]
jge 0x40611a
mov cl, byte [ecx]
mov eax, 1
shl eax, cl
mov dword [esp + 0x10], 0
test eax, eax
jle 0x4072ef
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
nop word [eax + eax]
mov edx, 8
mov ecx, edi
call fcn.00402640
mov ecx, dword [esp + 0x24]
dec eax
mov word [ecx], ax
cwde
cmp eax, dword [edi + 0x75]
jge 0x40611a
mov edx, dword [esp + 0x10]
add ecx, 2
mov dword [esp + 0x24], ecx
mov eax, 1
mov ecx, dword [esp + 0x28]
inc edx
mov dword [esp + 0x10], edx
mov cl, byte [ecx]
shl eax, cl
cmp edx, eax
jl 0x4072b0
mov eax, dword [esp + 0x30]
inc dword [esp + 0x28]
inc eax
add dword [esp + 0x2c], 0x10
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x20]
jle 0x407240
mov edx, 2
mov ecx, edi
call fcn.00402640
inc al
mov edx, 4
mov ecx, edi
mov byte [esi + 0x633], al
call fcn.00402640
xor edx, edx
mov byte [esi + 0x634], al
mov word [esi + 0x151], dx
mov cl, al
mov edx, 1
shl dx, cl
xor ecx, ecx
mov word [esi + 0x153], dx
mov dword [esi + 0x635], 2
mov dword [esp + 0x24], ecx
lea eax, [ecx + 2]
cmp byte [esi], cl
jbe 0x4073ce
movzx eax, byte [esi + ecx + 1]
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0
cmp byte [eax + esi + 0x21], 0
jbe 0x4073bc
nop word [eax + eax]
movzx edx, byte [esi + 0x634]
mov ecx, edi
call fcn.00402640
mov ecx, dword [esi + 0x635]
mov word [esi + ecx*2 + 0x151], ax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
inc dword [esi + 0x635]
inc ecx
mov dword [esp + 0x10], ecx
movzx eax, byte [eax + esi + 0x21]
cmp ecx, eax
jl 0x407380
mov ecx, dword [esp + 0x24]
movzx eax, byte [esi]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, eax
jl 0x407362
mov eax, dword [esi + 0x635]
xor ecx, ecx
test eax, eax
jle 0x407401
lea edx, [esi + 0x151]
nop word [eax + eax]
mov ax, word [edx]
lea edx, [edx + 2]
mov word [esp + ecx*4 + 0xa8], ax
mov word [esp + ecx*4 + 0xaa], cx
inc ecx
mov eax, dword [esi + 0x635]
cmp ecx, eax
jl 0x4073e0
push 0x401ee0
push 4
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.00501e60
mov eax, dword [esi + 0x635]
add esp, 0x10
xor ecx, ecx
test eax, eax
jle 0x407449
nop word [eax + eax]
mov al, byte [esp + ecx*4 + 0xaa]
mov byte [esi + ecx + 0x345], al
inc ecx
mov eax, dword [esi + 0x635]
cmp ecx, eax
jl 0x407430
mov edx, 2
cmp eax, edx
jle 0x4074f3
nop word [eax + eax]
or edi, 0xffffffff
mov dword [esp + 0x24], 0x10000
xor eax, eax
mov dword [esp + 0x30], edi
test edx, edx
jle 0x4074ca
nop word [eax + eax]
movzx ecx, word [esi + eax*2 + 0x151]
mov dword [esp + 0x10], ecx
movzx ecx, cx
cmp ecx, edi
mov edi, dword [esp + 0x10]
jle 0x4074a9
cmp di, word [esi + edx*2 + 0x151]
jae 0x4074a9
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], ecx
cmp ecx, dword [esp + 0x24]
jge 0x4074c1
cmp di, word [esi + edx*2 + 0x151]
jbe 0x4074c1
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], ecx
mov edi, dword [esp + 0x30]
inc eax
cmp eax, edx
jl 0x407480
mov eax, dword [esp + 0x58]
mov byte [esi + edx*2 + 0x43f], al
mov eax, dword [esp + 0x40]
mov byte [esi + edx*2 + 0x440], al
inc edx
mov eax, dword [esi + 0x635]
cmp edx, eax
jl 0x407460
mov edi, dword [esp + 0x38]
cmp eax, dword [esp + 0x64]
mov esi, dword [esp + 0x18]
cmovle eax, dword [esp + 0x64]
add esi, 2
add dword [esp + 0x1c], 0x639
mov ecx, eax
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
cmp eax, dword [edi + 0x7d]
jl 0x407170
mov dword [esp + 0x64], ecx
mov edx, 6
mov ecx, edi
call fcn.00402640
mov edx, dword [edi + 0x4d]
inc eax
mov dword [edi + 0x105], eax
imul eax, eax, 0x16
add eax, 3
and eax, 0xfffffffc
add dword [edi + 8], eax
test edx, edx
je 0x407611
mov ecx, dword [edi + 0x55]
add eax, ecx
cmp eax, dword [edi + 0x59]
jg 0x4080a8
mov dword [edi + 0x55], eax
lea eax, [edx + ecx]
jmp 0x407622
mov edx, 8
call fcn.00402640
mov edx, 0x10
mov byte [esi], al
mov ecx, edi
call fcn.00402640
mov edx, 0x10
mov word [esi + 1], ax
mov ecx, edi
call fcn.00402640
mov edx, 6
mov word [esi + 3], ax
mov ecx, edi
call fcn.00402640
mov edx, 8
mov byte [esi + 5], al
mov ecx, edi
call fcn.00402640
mov edx, 4
mov byte [esi + 6], al
mov ecx, edi
call fcn.00402640
add al, 1
mov dword [esp + 0x10], 0
mov byte [esi + 7], al
je 0x4075f4
mov edx, 8
mov ecx, edi
call fcn.00402640
mov ecx, dword [esp + 0x10]
mov byte [esi + ecx + 8], al
inc ecx
movzx eax, byte [esi + 7]
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x4075d3
mov dword [edi + 0x61], 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4080a8
push eax
call fcn.00501e08
add esp, 4
mov dword [edi + 0x189], eax
test eax, eax
je 0x4080b2
imul ecx, dword [edi + 0x105], 0x16
push ecx
push 0
push eax
call fcn.004fdf60
add esp, 0xc
mov dword [esp + 0x24], 0
cmp dword [edi + 0x105], 0
jle 0x4079ee
xor ecx, ecx
lea eax, [edi + 0x109]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
nop dword [eax + eax]
mov esi, dword [edi + 0x189]
mov edx, 0x10
add esi, ecx
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.00402640
mov ecx, dword [esp + 0x20]
movzx eax, ax
mov word [ecx], ax
cmp eax, 2
ja 0x40611a
mov edx, 0x18
mov ecx, edi
call fcn.00402640
mov edx, 0x18
mov dword [esi], eax
mov ecx, edi
call fcn.00402640
mov dword [esi + 4], eax
cmp eax, dword [esi]
jb 0x40611a
mov edx, 0x18
mov ecx, edi
call fcn.00402640
inc eax
mov edx, 6
mov ecx, edi
mov dword [esi + 8], eax
call fcn.00402640
inc al
mov edx, 8
mov ecx, edi
mov byte [esi + 0xc], al
call fcn.00402640
mov byte [esi + 0xd], al
movzx eax, al
cmp eax, dword [edi + 0x75]
jge 0x40611a
mov dl, byte [esi + 0xc]
mov dword [esp + 0x10], 0
test dl, dl
je 0x407765
nop dword [eax + eax]
mov edx, 3
mov byte [esp + 0xe], 0
mov ecx, edi
call fcn.00402640
mov edx, 1
mov byte [esp + 0xf], al
mov ecx, edi
call fcn.00402640
test eax, eax
je 0x407743
mov edx, 5
mov ecx, edi
call fcn.00402640
jmp 0x407747
mov al, byte [esp + 0xe]
mov ecx, dword [esp + 0x10]
mov dl, byte [esi + 0xc]
shl al, 3
add al, byte [esp + 0xf]
mov byte [esp + ecx + 0x68], al
inc ecx
movzx eax, dl
mov dword [esp + 0x10], ecx
cmp ecx, eax
jl 0x407710
movzx eax, dl
mov edx, dword [edi + 0x4d]
shl eax, 4
add dword [edi + 8], eax
test edx, edx
je 0x40778b
mov ecx, dword [edi + 0x55]
add eax, ecx
cmp eax, dword [edi + 0x59]
jg 0x407a4e
mov dword [edi + 0x55], eax
lea eax, [edx + ecx]
jmp 0x40779c
test eax, eax
je 0x407a4e
push eax
call fcn.00501e08
add esp, 4
mov dword [esi + 0x12], eax
test eax, eax
je 0x407a55
xor edx, edx
mov dword [esp + 0x2c], edx
cmp byte [esi + 0xc], dl
jbe 0x407831
movzx eax, byte [esp + edx + 0x68]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], eax
mov edi, dword [esp + 0x38]
lea edx, [ecx + edx*8]
mov eax, 1
add edx, edx
shl eax, cl
mov dword [esp + 0x58], edx
test dword [esp + 0x40], eax
je 0x407808
mov edx, 8
mov ecx, edi
call fcn.00402640
mov edx, dword [esp + 0x58]
mov ecx, dword [esi + 0x12]
mov word [edx + ecx], ax
mov eax, dword [esi + 0x12]
movsx eax, word [edx + eax]
cmp eax, dword [edi + 0x75]
jge 0x40611a
mov ecx, dword [esp + 0x10]
jmp 0x407816
mov eax, dword [esi + 0x12]
or edi, 0xffffffff
mov word [edx + eax], di
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, 8
jl 0x4077c1
movzx eax, byte [esi + 0xc]
inc edx
mov dword [esp + 0x2c], edx
cmp edx, eax
jl 0x4077b2
movzx eax, byte [esi + 0xd]
mov edx, dword [edi + 0x4d]
imul ecx, eax, 0x830
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov eax, dword [ecx + eax + 4]
shl eax, 2
add dword [edi + 8], eax
test edx, edx
je 0x407867
mov ecx, dword [edi + 0x55]
add eax, ecx
cmp eax, dword [edi + 0x59]
jg 0x407a2a
mov dword [edi + 0x55], eax
add edx, ecx
jmp 0x40787a
test eax, eax
je 0x407a2a
push eax
call fcn.00501e08
add esp, 4
mov edx, eax
mov dword [esi + 0xe], edx
test edx, edx
je 0x407a31
movzx ecx, byte [esi + 0xd]
mov edi, dword [esp + 0x34]
imul ecx, ecx, 0x830
mov eax, dword [edi]
mov eax, dword [ecx + eax + 4]
shl eax, 2
push eax
push 0
push edx
call fcn.004fdf60
mov dl, byte [esi + 0xd]
xor ecx, ecx
mov dword [esp + 0x34], ecx
add esp, 0xc
mov ecx, edi
movzx eax, dl
imul eax, eax, 0x830
mov edi, dword [ecx]
mov ecx, 0
cmp dword [eax + edi + 4], 0
mov edi, dword [esp + 0x38]
jle 0x4079c9
mov edi, dword [esp + 0x34]
movzx eax, dl
imul eax, eax, 0x830
mov dword [esp + 0x14], ecx
mov edx, dword [edi]
mov edi, dword [esp + 0x38]
mov eax, dword [eax + edx]
mov edx, ecx
mov dword [esp + 0x58], eax
add eax, 3
and eax, 0xfffffffc
add dword [edi + 8], eax
cmp dword [edi + 0x4d], 0
je 0x407923
mov ecx, dword [edi + 0x55]
add eax, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x28]
cmp eax, dword [edi + 0x59]
jg 0x40793e
mov dword [edi + 0x55], eax
mov eax, dword [esp + 0x40]
add eax, dword [edi + 0x4d]
mov dword [esp + 0x1c], eax
jmp 0x407946
test eax, eax
je 0x40793e
push eax
call fcn.00501e08
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
jmp 0x407946
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 0xe]
mov edi, dword [esp + 0x1c]
mov dword [eax + ecx*4], edi
mov eax, dword [esi + 0xe]
mov edi, dword [esp + 0x38]
cmp dword [eax + ecx*4], 0
je 0x4080fd
mov eax, dword [esp + 0x58]
add eax, 0xffffffff
mov dword [esp + 0x40], eax
js 0x4079a0
movzx ecx, byte [esi + 0xc]
mov edi, eax
mov eax, edx
cdq
idiv ecx
mov ecx, dword [esi + 0xe]
mov eax, dword [esp + 0x28]
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x14]
mov byte [edi + ecx], dl
movzx ecx, byte [esi + 0xc]
cdq
idiv ecx
sub edi, 1
mov edx, eax
mov dword [esp + 0x14], edx
jns 0x407974
mov ecx, dword [esp + 0x28]
mov dl, byte [esi + 0xd]
inc ecx
mov esi, dword [esp + 0x34]
movzx eax, dl
imul eax, eax, 0x830
mov dword [esp + 0x28], ecx
mov edi, dword [esi]
mov esi, dword [esp + 0x18]
cmp ecx, dword [eax + edi + 4]
mov edi, dword [esp + 0x38]
jl 0x4078d2
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
inc eax
add dword [esp + 0x20], 2
add ecx, 0x16
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], ecx
cmp eax, dword [edi + 0x105]
jl 0x407670
mov edx, 6
mov ecx, edi
call fcn.00402640
mov edx, dword [edi + 0x4d]
inc eax
mov dword [edi + 0x18d], eax
imul eax, eax, 0x25
add eax, 3
and eax, 0xfffffffc
add dword [edi + 8], eax
test edx, edx
je 0x407a72
mov ecx, dword [edi + 0x55]
add eax, ecx
cmp eax, dword [edi + 0x59]
jg 0x408081
mov dword [edi + 0x55], eax
lea eax, [edx + ecx]
jmp 0x407a83
mov dword [esi + 0xe], 0
mov dword [edi + 0x61], 3
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x12], 0
mov dword [edi + 0x61], 3
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x408081
push eax
call fcn.00501e08
add esp, 4
mov dword [edi + 0x191], eax
test eax, eax
je 0x40808b
imul ecx, dword [edi + 0x18d], 0x25
push ecx
push 0
push eax
call fcn.004fdf60
add esp, 0xc
mov dword [esp + 0x30], 0
cmp dword [edi + 0x18d], 0
jle 0x407d4f
xor ecx, ecx
mov dword [esp + 0x20], ecx
nop
mov esi, dword [edi + 0x191]
mov edx, 0x10
add esi, ecx
mov ecx, edi
call fcn.00402640
test eax, eax
jne 0x40611a
mov eax, dword [edi + 4]
mov edx, dword [edi + 0x4d]
inc eax
lea eax, [eax + eax*2]
and eax, 0xfffffffc
add dword [edi + 8], eax
test edx, edx
je 0x407b06
mov ecx, dword [edi + 0x55]
add eax, ecx
cmp eax, dword [edi + 0x59]
jg 0x407e46
mov dword [edi + 0x55], eax
lea eax, [edx + ecx]
jmp 0x407b17
test eax, eax
je 0x407e46
push eax
call fcn.00501e08
add esp, 4
mov dword [esi + 2], eax
test eax, eax
je 0x407e4d
mov edx, 1
mov ecx, edi
call fcn.00402640
test eax, eax
je 0x407b42
mov edx, 4
mov ecx, edi
call fcn.00402640
inc al
jmp 0x407b44
mov al, 1
mov ecx, dword [esp + 0x3c]
mov edx, 1
mov byte [esi + 6], al
movzx eax, al
cmp eax, ecx
cmovg ecx, eax
mov dword [esp + 0x3c], ecx
mov ecx, edi
call fcn.00402640
test eax, eax
je 0x407c27
mov edx, 8
mov ecx, edi
call fcn.00402640
inc eax
mov dword [esp + 0x10], 0
xor ecx, ecx
mov word [esi], ax
cmp cx, ax
jae 0x407c2c
mov eax, dword [edi + 4]
mov dword [esp + 0x2c], ecx
lea ecx, [eax - 1]
call fcn.00401460
mov edx, eax
mov ecx, edi
call fcn.00402640
mov ecx, dword [esi + 2]
mov edx, dword [esp + 0x2c]
mov byte [edx + ecx], al
mov ecx, dword [edi + 4]
dec ecx
call fcn.00401460
mov edx, eax
mov ecx, edi
call fcn.00402640
mov ecx, dword [esi + 2]
mov edx, dword [esp + 0x2c]
mov byte [edx + ecx + 1], al
mov eax, dword [esi + 2]
mov ecx, dword [edi + 4]
mov dword [esp + 0x40], ecx
mov al, byte [edx + eax]
mov byte [esp + 0xe], al
movzx eax, al
cmp eax, ecx
jge 0x40611a
mov eax, dword [esi + 2]
mov cl, byte [edx + eax + 1]
movzx eax, cl
cmp eax, dword [esp + 0x40]
jge 0x40611a
cmp byte [esp + 0xe], cl
je 0x40611a
mov ecx, dword [esp + 0x10]
add edx, 3
movzx eax, word [esi]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 4]
mov dword [esp + 0x2c], edx
jl 0x407b95
jmp 0x407c2c
xor eax, eax
mov word [esi], ax
mov edx, 2
mov ecx, edi
call fcn.00402640
test eax, eax
jne 0x40611a
mov cl, byte [esi + 6]
mov eax, dword [edi + 4]
cmp cl, 1
jbe 0x407c9e
mov dword [esp + 0x10], 0
test eax, eax
jle 0x407cba
mov dword [esp + 0x24], 0
nop
mov edx, 4
mov ecx, edi
call fcn.00402640
mov ecx, dword [esi + 2]
mov edx, dword [esp + 0x24]
mov byte [edx + ecx + 2], al
mov eax, dword [esi + 2]
mov cl, byte [esi + 6]
cmp byte [edx + eax + 2], cl
jae 0x40611a
mov eax, dword [esp + 0x10]
add edx, 3
inc eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 4]
jl 0x407c60
jmp 0x407cba
xor edx, edx
test eax, eax
jle 0x407cba
xor ecx, ecx
mov eax, dword [esi + 2]
lea ecx, [ecx + 3]
inc edx
mov byte [ecx + eax - 1], 0
cmp edx, dword [edi + 4]
jl 0x407ca6
mov cl, byte [esi + 6]
test cl, cl
je 0x407d2f
lea eax, [esi + 7]
mov dword [esp + 0x2c], eax
mov eax, 0xfffffff9
sub eax, esi
mov dword [esp + 0x40], eax
mov edx, 8
mov ecx, edi
call fcn.00402640
mov edx, 8
mov ecx, edi
call fcn.00402640
mov ecx, dword [esp + 0x2c]
mov edx, 8
mov byte [ecx], al
mov ecx, edi
call fcn.00402640
mov edx, dword [esp + 0x2c]
movzx ecx, byte [edx]
mov byte [edx + 0xf], al
cmp ecx, dword [edi + 0x7d]
jge 0x40611a
movzx eax, al
cmp eax, dword [edi + 0x105]
jge 0x40611a
mov ecx, dword [esp + 0x40]
inc edx
movzx eax, byte [esi + 6]
add ecx, edx
mov dword [esp + 0x2c], edx
cmp ecx, eax
jl 0x407cd0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
inc eax
add ecx, 0x25
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
cmp eax, dword [edi + 0x18d]
jl 0x407ac0
mov edx, 6
mov ecx, edi
call fcn.00402640
inc eax
mov dword [esp + 0x3c], 0
mov dword [edi + 0x195], eax
test eax, eax
jle 0x407de9
lea esi, [edi + 0x19b]
mov edx, 1
mov ecx, edi
call fcn.00402640
mov edx, 0x10
mov byte [esi - 2], al
mov ecx, edi
call fcn.00402640
mov edx, 0x10
mov word [esi], ax
mov ecx, edi
call fcn.00402640
mov edx, 8
mov word [esi + 2], ax
mov ecx, edi
call fcn.00402640
cmp word [esi], 0
mov byte [esi - 1], al
jne 0x40611a
cmp word [esi + 2], 0
jne 0x40611a
movzx eax, al
cmp eax, dword [edi + 0x18d]
jge 0x40611a
mov eax, dword [esp + 0x3c]
add esi, 6
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [edi + 0x195]
jl 0x407d74
mov ecx, edi
call fcn.004025e0
cmp dword [edi + 4], 0
mov dword [edi + 0x3dd], 0
mov dword [esp + 0x3c], 0
jle 0x407f3b
mov eax, dword [esp + 0x64]
lea esi, [edi + 0x31d]
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x71]
mov ecx, dword [edi + 0x4d]
shl eax, 2
add dword [edi + 8], eax
test ecx, ecx
je 0x407e6a
mov edx, dword [edi + 0x55]
add eax, edx
cmp eax, dword [edi + 0x59]
jg 0x407e79
mov dword [edi + 0x55], eax
lea eax, [ecx + edx]
jmp 0x407e7b
mov dword [esi + 2], 0
mov dword [edi + 0x61], 3
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x407e79
push eax
call fcn.00501e08
add esp, 4
jmp 0x407e7b
xor eax, eax
mov dword [esi], eax
mov eax, dword [edi + 0x71]
mov edx, dword [edi + 0x4d]
shl eax, 2
shr eax, 1
add eax, 3
and eax, 0xfffffffc
add dword [edi + 8], eax
test edx, edx
je 0x407ea7
mov ecx, dword [edi + 0x55]
add eax, ecx
cmp eax, dword [edi + 0x59]
jg 0x407eb6
mov dword [edi + 0x55], eax
lea eax, [edx + ecx]
jmp 0x407eb8
test eax, eax
je 0x407eb6
push eax
call fcn.00501e08
add esp, 4
jmp 0x407eb8
xor eax, eax
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x40]
add dword [edi + 8], eax
mov ecx, dword [edi + 0x4d]
test ecx, ecx
je 0x407ede
mov edx, dword [edi + 0x55]
add eax, edx
cmp eax, dword [edi + 0x59]
jg 0x407eed
mov dword [edi + 0x55], eax
lea eax, [ecx + edx]
jmp 0x407eef
test eax, eax
je 0x407eed
push eax
call fcn.00501e08
add esp, 4
jmp 0x407eef
xor eax, eax
mov ecx, dword [esi]
mov dword [esi + 0xc4], eax
test ecx, ecx
je 0x4080fd
cmp dword [esi + 0x80], 0
je 0x4080fd
test eax, eax
je 0x4080fd
mov eax, dword [edi + 0x71]
shl eax, 2
push eax
push 0
push ecx
call fcn.004fdf60
mov edx, dword [esp + 0x48]
add esp, 0xc
inc edx
add esi, 4
mov dword [esp + 0x3c], edx
cmp edx, dword [edi + 4]
jl 0x407e24
push dword [edi + 0x6d]
xor edx, edx
mov ecx, edi
call fcn.00401a20
add esp, 4
test eax, eax
je 0x408128
push dword [edi + 0x71]
mov edx, 1
mov ecx, edi
call fcn.00401a20
add esp, 4
test eax, eax
je 0x408128
mov eax, dword [edi + 0x6d]
xor esi, esi
mov dword [edi + 0x65], eax
mov edx, dword [edi + 0x71]
mov dword [edi + 0x69], edx
mov ecx, dword [edi + 0x105]
mov dword [esp + 0x3c], ecx
lea eax, [edx*4]
shr eax, 1
mov dword [esp + 0x58], eax
test ecx, ecx
jle 0x407fd9
mov edi, dword [edi + 0x189]
mov eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
cmp dword [edi], eax
mov edx, eax
mov ecx, dword [edi + 4]
cmovb edx, dword [edi]
lea edi, [edi + 0x16]
cmp ecx, dword [esp + 0x10]
cmovb eax, ecx
sub eax, edx
xor edx, edx
div dword [edi - 0xe]
cmp eax, esi
cmovg esi, eax
sub dword [esp + 0x3c], 1
mov eax, dword [esp + 0x10]
jne 0x407fa6
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x58]
inc esi
imul esi, dword [edi + 4]
shl esi, 2
mov dword [edi + 0xc], esi
cmp eax, esi
jbe 0x407fed
mov dword [edi + 0xc], eax
mov esi, eax
cmp dword [edi + 0x4d], 0
mov byte [edi + 0x55e], 1
je 0x40800d
mov eax, dword [edi + 0x55]
add eax, 0x5fb
add eax, esi
cmp eax, dword [edi + 0x59]
ja 0x4080fd
cmp byte [edi + 0x30], 0
je 0x408031
xor eax, eax
mov dword [edi + 0x31], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x20]
test eax, eax
je 0x408057
sub eax, dword [edi + 0x24]
mov dword [edi + 0x31], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
push dword [edi + 0x14]
call fcn.00502c51
add esp, 4
sub eax, dword [edi + 0x18]
mov dword [edi + 0x31], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x191], 0
mov dword [edi + 0x61], 3
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x189], 0
mov dword [edi + 0x61], 3
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x101], 0
mov dword [edi + 0x61], 3
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x79], 0
mov dword [edi + 0x61], 3
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x5d], 1
mov dword [edi + 0x61], 0xa
mov ecx, dword [esp + 0x49c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret