Function at 0x1003e150
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10220675
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x198
mov eax, dword [0x102d2084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xec], ecx
mov edi, dword [ebx + 8]
lea eax, [ebp - 0xa0]
push eax
mov ecx, 0x102d2b60
mov dword [ebp - 0xe0], edi
mov dword [ebp - 0xd0], 0
call fcn.100428f0
mov dword [ebp - 4], 0
lea esi, [ebp - 0xa0]
mov eax, dword [edi]
mov ecx, edi
cmp dword [ebp - 0x8c], 0x10
mov dword [ebp - 0xd0], 3
cmovae esi, dword [ebp - 0xa0]
mov eax, dword [eax + 4]
call eax
nop dword [eax]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x1003e210
test cl, cl
je 0x1003e20c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x1003e210
add eax, 2
add esi, 2
test cl, cl
jne 0x1003e1f0
xor eax, eax
jmp 0x1003e215
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1003e238
mov eax, dword [0x10bbb620]
add eax, 0x91761abb
mov byte [ebp - 0xbd], 0
xor eax, 0xfd410b50
cmp dword [eax + 0x134], 0
jne 0x1003e23f
mov byte [ebp - 0xbd], 1
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0xffffffff
call fcn.1002b860
cmp byte [ebp - 0xbd], 0
jne 0x1003f25e
mov eax, dword [0x10bbb620]
mov ecx, 0x102d2b20
add eax, 0x91761abb
xor eax, 0xfd410b50
mov edi, dword [eax + 0xac]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
lea eax, [ebp - 0x2c]
push eax
call fcn.10043020
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18], 0x10
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call esi
mov edx, dword [edi]
mov ecx, edi
push eax
mov edx, dword [edx + 0x24]
call edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.1002b860
mov ecx, dword [0x10bbb620]
add ecx, 0x91761abb
xor ecx, 0xfd410b50
mov ecx, dword [ecx + 0x134]
add ecx, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
cmp eax, esi
jne 0x1003f25e
mov eax, dword [0x10bbb620]
mov ecx, 0x102d2c20
add eax, 0x91761abb
xor eax, 0xfd410b50
mov edi, dword [eax + 0xac]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
lea eax, [ebp - 0x2c]
push eax
call fcn.10042c20
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x18], 0x10
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call esi
mov edx, dword [edi]
mov ecx, edi
push eax
mov edx, dword [edx + 0x24]
call edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.1002b860
mov ecx, dword [0x10bbb620]
add ecx, 0x91761abb
xor ecx, 0xfd410b50
push esi
mov ecx, dword [ecx + 0xb0]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov edx, eax
mov dword [ebp - 0xf0], edx
test edx, edx
je 0x1003f25e
mov ecx, dword [0x10bbb620]
add ecx, 0x91761abb
xor ecx, 0xfd410b50
mov eax, dword [ecx + 0x134]
mov dword [ebp - 0xd8], eax
test eax, eax
je 0x1003e63b
cmp edx, eax
je 0x1003f25e
mov ecx, dword [ecx + 0x184]
mov eax, dword [ecx + 0x1c]
cmp dword [eax + 0x30], ecx
jne 0x1003e63b
mov edx, dword [0x10370f7c]
test dl, 1
jne 0x1003e57a
or edx, 1
mov dword [0x10370f7c], edx
mov dword [ebp - 4], 3
mov eax, dword [0x1036cbb0]
mov ecx, dword [0x1036cbb4]
mov dword [ebp - 0xc4], eax
cmp eax, ecx
je 0x1003e453
mov dword [ebp - 0xcc], eax
nop
mov ecx, dword [eax]
mov dword [ebp - 0xc8], ecx
test ecx, ecx
je 0x1003e442
mov esi, dword [ecx + 0xc]
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x1003e416
xor edx, edx
test ecx, ecx
je 0x1003e442
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1003e423
cmp edi, 0x1eee87cc
je 0x1003e472
mov eax, dword [ebp - 0xcc]
add eax, 4
mov dword [ebp - 0xcc], eax
cmp eax, dword [0x1036cbb4]
jne 0x1003e400
mov eax, dword [0x1036cbb0]
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [0x10370f7c]
mov dword [0x10370f34], ecx
jmp 0x1003e58b
mov eax, dword [ebp - 0xc8]
xor edi, edi
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xcc], edi
cmp dword [eax + 4], edi
jle 0x1003e56e
xor ecx, ecx
mov dword [ebp - 0xd4], ecx
nop word [eax + eax]
mov esi, dword [eax]
add esi, ecx
mov dword [ebp - 0xd0], esi
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x1003e4dd
cmp dword [ecx + 4], 0
jle 0x1003e4dd
push 0
mov edx, 0xa5bfefb3
call fcn.10138e60
add esp, 4
test eax, eax
je 0x1003e4d7
mov ecx, dword [esi + 0x2c]
add ecx, eax
add edi, ecx
mov dword [ebp - 0xbc], edi
mov eax, dword [ebp - 0xc8]
mov esi, dword [esi]
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x1003e4e6
xor edx, edx
test ecx, ecx
je 0x1003e512
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1003e4f3
cmp edi, 0xa5bfefb3
je 0x1003e54f
mov eax, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xd4]
inc edx
mov edi, dword [ebp - 0xbc]
add ecx, 0x3c
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0xd4], ecx
cmp edx, dword [eax + 4]
jl 0x1003e4a0
mov eax, dword [0x1036cbb0]
mov ecx, edi
mov dword [ebp - 0xc4], eax
jmp 0x1003e45a
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x2c]
mov eax, dword [0x1036cbb0]
add ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
jmp 0x1003e45a
mov eax, dword [0x1036cbb0]
mov ecx, edi
jmp 0x1003e45a
mov eax, dword [0x1036cbb0]
mov ecx, dword [0x10370f34]
mov dword [ebp - 0xc4], eax
mov esi, dword [ebp - 0xf0]
mov esi, dword [ecx + esi]
mov dword [ebp - 0xdc], esi
test dl, 1
jne 0x1003e62c
or edx, 1
mov dword [0x10370f7c], edx
mov dword [ebp - 4], 4
cmp eax, dword [0x1036cbb4]
je 0x1003e617
nop dword [eax + eax]
mov ecx, dword [eax]
mov dword [ebp - 0xbc], ecx
test ecx, ecx
je 0x1003e606
mov edi, dword [ecx + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + edi], 0
jne 0x1003e5d6
xor edx, edx
test ecx, ecx
je 0x1003e606
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x1003e5e3
cmp esi, 0x1eee87cc
je 0x1003e6bd
mov eax, dword [ebp - 0xc4]
add eax, 4
mov dword [ebp - 0xc4], eax
cmp eax, dword [0x1036cbb4]
jne 0x1003e5c0
xor ecx, ecx
mov esi, dword [ebp - 0xdc]
mov dword [0x10370f34], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd8]
cmp esi, dword [eax + ecx]
je 0x1003f25e
mov eax, dword [0x11093238]
test al, 1
jne 0x1003e667
or eax, 1
mov dword [0x11093238], eax
push 0x102322c0
mov dword [ebp - 4], 5
call fcn.101f0aeb
add esp, 4
mov dword [ebp - 4], 0xffffffff
movd xmm0, dword [0x10355ed8]
lea eax, [ebp - 0x7c]
cvtdq2ps xmm0, xmm0
push eax
mov ecx, 0x102d2b10
mulss xmm0, dword [0x102ba654]
movss dword [ebp - 0xc8], xmm0
call fcn.100429d0
mov dword [ebp - 4], 6
lea esi, [ebp - 0x7c]
cmp dword [ebp - 0x68], 0x10
mov eax, 0x7fffffff
mov ecx, dword [0x103a5694]
cmovae esi, dword [ebp - 0x7c]
sub eax, ecx
cmp eax, 1
jb 0x1003f27e
jmp 0x1003e79a
mov eax, dword [ebp - 0xbc]
xor edi, edi
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xcc], edi
cmp dword [eax + 4], edi
jle 0x1003e77f
xor ecx, ecx
mov dword [ebp - 0xd4], ecx
mov esi, dword [eax]
add esi, ecx
mov dword [ebp - 0xd0], esi
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x1003e71f
cmp dword [ecx + 4], 0
jle 0x1003e71f
push 0
mov edx, 0xa5bfefb3
call fcn.10138e60
add esp, 4
test eax, eax
je 0x1003e719
mov ecx, dword [esi + 0x2c]
add ecx, eax
add edi, ecx
mov dword [ebp - 0xc8], edi
mov eax, dword [ebp - 0xbc]
mov esi, dword [esi]
mov edi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + esi], 0
jne 0x1003e728
xor edx, edx
test ecx, ecx
je 0x1003e754
movsx eax, byte [edx + esi]
inc edx
xor eax, edi
imul edi, eax, 0x1000193
cmp edx, ecx
jb 0x1003e735
cmp edi, 0xa5bfefb3
je 0x1003e786
mov eax, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xd4]
inc edx
mov edi, dword [ebp - 0xc8]
add ecx, 0x3c
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0xd4], ecx
cmp edx, dword [eax + 4]
jl 0x1003e6e2
mov ecx, edi
jmp 0x1003e619
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x2c]
add ecx, dword [ebp - 0xc8]
jmp 0x1003e619
cmp dword [0x103a5698], 0x10
mov eax, 0x103a5684
push 1
cmovae eax, dword [0x103a5684]
push 0x102b3774
push ecx
push eax
push ecx
push dword [ebp - 0xe4]
lea ecx, [ebp - 0xb8]
call fcn.10048d00
push 0x10355edc
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 7
call fcn.10044770
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.10044770
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea ecx, [ebp - 0x2c]
call fcn.1002b860
lea ecx, [ebp - 0xb8]
call fcn.1002b860
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xc
call fcn.1002b860
mov eax, dword [0x10355ed4]
test eax, eax
je 0x1003edc3
cmp eax, 1
je 0x1003ec21
cmp dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x44]
cmovae edx, dword [ebp - 0x44]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003e8a0
sub ecx, esi
push ecx
push edx
call fcn.101efe95
mov edx, eax
lea ecx, [ebp - 0x60]
call fcn.101313b0
add esp, 8
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xd
call fcn.10131e40
lea ecx, [ebp - 0x60]
mov byte [ebp - 0xbd], al
mov byte [ebp - 4], 0xc
call fcn.10133a00
cmp byte [ebp - 0xbd], 0
je 0x1003ec21
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae eax, dword [ebp - 0x44]
mov ecx, 0x102d2b38
push eax
call fcn.10045fd0
cmp dword [0x102d2b48], 0
jbe 0x1003edc3
push 0x102d2b38
lea ecx, [ebp - 0x60]
call fcn.10044a10
sub esp, 8
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x1a8]
push 0x20
push eax
call fcn.100424d0
push 2
sub esp, 8
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1a8]
call fcn.10043570
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x1a8]
call fcn.10043470
mov edi, dword [eax + 8]
add edi, dword [eax]
mov ecx, dword [eax + 0xc]
adc ecx, dword [eax + 4]
push edi
mov dword [ebp - 0xe4], ecx
call fcn.101f0b48
mov ecx, eax
add esp, 4
shr eax, 0x18
mov dword [ebp - 0xcc], eax
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0xd4], eax
mov eax, ecx
push 0
sub esp, 8
mov dword [ebp - 0xbc], ecx
shr eax, 8
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 0xc4], eax
call fcn.10043570
mov eax, edi
lea ecx, [ebp - 0x1a8]
cdq
push edx
push eax
push dword [ebp - 0xbc]
call fcn.100436b0
mov al, byte [ebp - 0xbc]
lea ecx, [ebp - 0x198]
mov byte [ebp - 0xbd], al
call fcn.10045d60
test eax, eax
jne 0x1003ea31
mov eax, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1a8]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.1003d0c0
mov al, byte [ebp - 0xbc]
mov byte [ebp - 0xbd], al
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xcc], eax
lea ecx, [ebp - 0x1a8]
call fcn.1003e0c0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xc
call fcn.1002b860
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xbc], eax
movzx eax, byte [ebp - 0xbd]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
mov eax, dword [ebp - 0xc4]
movzx eax, al
xor ecx, eax
mov eax, dword [ebp - 0xd4]
imul ecx, ecx, 0x1000193
movzx eax, al
xor ecx, eax
mov eax, dword [ebp - 0xcc]
imul ecx, ecx, 0x1000193
movzx eax, al
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.10049250
cmp dword [eax + 4], 0
jne 0x1003eb22
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.10047c30
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
add ecx, 0xc
mov edx, eax
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd8], eax
mov esi, dword [ecx]
sub edx, esi
cmp edi, edx
jae 0x1003eaec
lea eax, [edi + esi]
mov dword [ecx + 4], eax
jmp 0x1003eb22
jbe 0x1003eb22
mov eax, dword [ecx + 8]
sub eax, esi
cmp edi, eax
jbe 0x1003eb00
push ecx
push edi
call fcn.100496c0
jmp 0x1003eb22
mov ecx, dword [ebp - 0xd8]
mov eax, edi
sub eax, edx
push eax
push 0
push ecx
lea esi, [eax + ecx]
call fcn.101f2d60
mov eax, dword [ebp - 0xdc]
add esp, 0xc
mov dword [eax + 4], esi
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.10047c30
mov esi, dword [eax]
movss xmm0, dword [esi + 0x18]
ucomiss xmm0, dword [ebp - 0xc8]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xc4], eax
lahf
test ah, 0x44
jnp 0x1003ec12
push edi
push dword [ebp - 0xbc]
push dword [ebp - 0xc4]
call fcn.101f27e0
movss xmm1, dword [ebp - 0xc8]
mov eax, edi
cdq
add esp, 0xc
sub eax, edx
movss dword [esi + 0x18], xmm1
sar eax, 1
xor esi, esi
test eax, eax
jle 0x1003ec12
mov ecx, dword [ebp - 0xc4]
add ecx, 2
cmp byte [ecx - 2], 0x64
jne 0x1003eba9
cmp byte [ecx - 1], 0x61
jne 0x1003eba9
cmp byte [ecx], 0x74
jne 0x1003eba9
cmp byte [ecx + 1], 0x61
je 0x1003ebbe
inc esi
inc ecx
cmp esi, eax
jl 0x1003eb92
push 5
push 0
push dword [ebp - 0xc4]
jmp 0x1003edbd
test esi, esi
je 0x1003ec12
mov ecx, dword [ebp - 0xc4]
mov edx, 0
mov eax, dword [ecx + esi + 4]
lea ecx, [ecx + 8]
shr eax, 1
lea ecx, [ecx + esi]
mov dword [ebp - 0xd8], eax
je 0x1003ec12
mov eax, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xd8]
dec eax
add edi, eax
movzx eax, word [ecx]
cwde
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvttss2si eax, xmm0
mov word [ecx], ax
add ecx, 2
cmp ecx, edi
jae 0x1003ec12
inc edx
cmp edx, esi
jb 0x1003ebf0
push 5
push 0
push dword [ebp - 0xc4]
jmp 0x1003edbd
mov edx, str.RIFF
mov dword [ebp - 0xbc], str.RIFF
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, dl
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
xor ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
imul ecx, ecx, 0x1000193
shr edx, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
xor eax, edx
imul eax, eax, 0x1000193
push eax
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.10049250
cmp dword [eax + 4], 0
jne 0x1003eced
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.10047c30
mov edi, dword [eax]
mov esi, dword [edi + 0x10]
mov ecx, esi
mov edx, dword [edi + 0xc]
sub ecx, edx
cmp ecx, 0xfcbc
jbe 0x1003ecb5
lea eax, [edx + 0xfcbc]
mov dword [edi + 0x10], eax
jmp 0x1003eced
jae 0x1003eced
mov eax, dword [edi + 0x14]
sub eax, edx
cmp eax, 0xfcbc
jae 0x1003ecd3
push ecx
push 0xfcbc
lea ecx, [edi + 0xc]
call fcn.100496c0
jmp 0x1003eced
mov eax, 0xfcbc
sub eax, ecx
push eax
push 0
push dword [edi + 0x10]
add esi, eax
call fcn.101f2d60
add esp, 0xc
mov dword [edi + 0x10], esi
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.10047c30
mov esi, dword [eax]
movss xmm0, dword [esi + 0x18]
ucomiss xmm0, dword [ebp - 0xc8]
mov edi, dword [esi + 0xc]
mov dword [ebp - 0xdc], edi
lahf
test ah, 0x44
jnp 0x1003edb8
push 0xfcbc
push dword [ebp - 0xbc]
push edi
call fcn.101f27e0
movss xmm1, dword [ebp - 0xc8]
lea eax, [edi + 2]
add esp, 0xc
movss dword [esi + 0x18], xmm1
xor ecx, ecx
cmp byte [eax - 2], 0x64
jne 0x1003ed5e
cmp byte [eax - 1], 0x61
jne 0x1003ed5e
cmp byte [eax], 0x74
jne 0x1003ed5e
cmp byte [eax + 1], 0x61
je 0x1003ed6a
inc ecx
inc eax
cmp ecx, 0x7e5e
jl 0x1003ed47
jmp 0x1003edb8
test ecx, ecx
je 0x1003edb8
mov esi, dword [ecx + edi + 4]
lea ecx, [ecx + 8]
shr esi, 1
lea ecx, [ecx + edi]
mov edx, 0
je 0x1003edb8
lea eax, [edi + 0xfcbb]
mov dword [ebp - 0xd8], eax
mov edi, eax
nop
movzx eax, word [ecx]
cwde
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
cvttss2si eax, xmm0
mov word [ecx], ax
add ecx, 2
cmp ecx, edi
jae 0x1003edb2
inc edx
cmp edx, esi
jb 0x1003ed90
mov edi, dword [ebp - 0xdc]
push 5
push 0
push edi
call dword [sym.imp.WINMM.dll_PlaySoundA]
cmp dword [0x10355eac], 0
jne 0x1003edf8
cmp byte [0x10355ec0], 0
jne 0x1003edf8
mov ecx, dword [ebp - 0xec]
mov eax, dword [ecx + 0x31c]
cmp eax, dword [ecx + 0x320]
je 0x1003f256
mov dword [ecx + 0x320], eax
jmp 0x1003f256
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
movss xmm0, dword [eax]
movss dword [ebp - 0xdc], xmm0
movss xmm0, dword [eax + 4]
movss dword [ebp - 0xd8], xmm0
movss xmm0, dword [eax + 8]
movss dword [ebp - 0xe4], xmm0
movss xmm0, dword [0x102bab58]
movss dword [ebp - 0xd4], xmm0
call fcn.101f641e
xor ecx, ecx
mov dword [ebp - 0xbc], ecx
movd xmm2, eax
mov eax, dword [ebp - 0xec]
cvtdq2ps xmm2, xmm2
mov edi, dword [eax + 0x314]
mov ecx, edi
mov esi, dword [eax + 0x310]
sub ecx, esi
mov eax, 0x38e38e39
mulss xmm2, dword [0x102ba63c]
imul ecx
movss dword [ebp - 0xc8], xmm2
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1003f256
mov ecx, dword [ebp - 0x68]
xor eax, eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xd0], ecx
movss xmm0, dword [eax + esi + 0x14]
addss xmm0, dword [0x102ba84c]
comiss xmm2, xmm0
jbe 0x1003f079
lea ecx, [eax + esi]
lea eax, [ecx + 0x24]
sub edi, eax
push edi
push eax
push ecx
call fcn.101f27e0
mov eax, dword [ebp - 0xec]
add esp, 0xc
movss xmm1, dword [ebp - 0xd4]
add dword [eax + 0x314], 0xffffffdc
mov edi, dword [eax + 0x314]
mov eax, dword [ebp - 0xc4]
add eax, 0x24
inc dword [ebp - 0xbc]
movss xmm2, dword [ebp - 0xc8]
mov ecx, edi
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xec]
mov esi, dword [eax + 0x310]
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xc4]
jb 0x1003eeb2
ucomiss xmm1, dword [0x102bab58]
lahf
test ah, 0x44
jnp 0x1003f256
mov ecx, dword [ebp - 0xec]
lea ecx, [ecx + 0x31c]
call fcn.1003f290
mov edi, eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xd8], edi
mov ecx, dword [eax]
lea eax, [ebp - 0x60]
push eax
mov esi, dword [ecx + 0x18]
mov ecx, 0x102d2be8
call fcn.10042dc0
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x4c], 0x10
push 0
cmovae eax, dword [ebp - 0x60]
push eax
call esi
lea ecx, [ebp - 0x60]
mov dword [edi], eax
mov byte [ebp - 4], 0xc
call fcn.1002b860
movss xmm0, dword [ebp - 0xc8]
mov eax, dword [0x10370fac]
mov ecx, dword [ebp - 0xd0]
movss dword [edi + 8], xmm0
movss dword [edi + 0xc], xmm0
movq xmm0, qword [ebp - 0x70]
movq qword [edi + 0x18], xmm0
mov dword [edi + 0x10], 0x3f800000
mov dword [edi + 0x20], ecx
test al, 1
jne 0x1003f245
or eax, 1
mov dword [0x10370fac], eax
mov byte [ebp - 4], 0x11
mov eax, dword [0x1036cbb0]
mov dword [ebp - 0xd0], eax
cmp eax, dword [0x1036cbb4]
je 0x1003f067
nop word [eax + eax]
mov ecx, dword [eax]
mov dword [ebp - 0xbc], ecx
test ecx, ecx
je 0x1003f056
mov edi, dword [ecx + 0xc]
mov esi, 0x811c9dc5
xor ecx, ecx
inc ecx
cmp byte [ecx + edi], 0
jne 0x1003f026
xor edx, edx
test ecx, ecx
je 0x1003f056
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x1003f033
cmp esi, 0x72e242a1
je 0x1003f151
mov eax, dword [ebp - 0xd0]
add eax, 4
mov dword [ebp - 0xd0], eax
cmp eax, dword [0x1036cbb4]
jne 0x1003f010
mov edi, dword [ebp - 0xd8]
xor eax, eax
mov dword [0x10370f6c], eax
jmp 0x1003f24a
movss xmm0, dword [ebp - 0xd8]
subss xmm0, dword [eax + esi + 0x1c]
movss xmm1, dword [0x102ba808]
call fcn.1000da60
mov eax, dword [ebp - 0xc4]
movss xmm1, dword [0x102ba808]
movss dword [ebp - 0xcc], xmm0
movss xmm0, dword [ebp - 0xdc]
subss xmm0, dword [eax + esi + 0x18]
call fcn.1000da60
movss xmm1, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xc4]
addss xmm1, xmm0
movss xmm0, dword [ebp - 0xe4]
subss xmm0, dword [eax + esi + 0x20]
movss dword [ebp - 0xcc], xmm1
movss xmm1, dword [0x102ba808]
call fcn.1000da60
addss xmm0, dword [ebp - 0xcc]
call fcn.1000da70
movss xmm1, dword [ebp - 0xd4]
comiss xmm1, xmm0
ja 0x1003f11d
ucomiss xmm1, dword [0x102bab58]
lahf
test ah, 0x44
jp 0x1003eef7
mov eax, dword [ebp - 0xc4]
movaps xmm1, xmm0
movss dword [ebp - 0xd4], xmm1
movups xmm0, xmmword [eax + esi]
mov ecx, dword [eax + esi + 0x20]
mov dword [ebp - 0xd0], ecx
movups xmmword [ebp - 0x88], xmm0
movups xmm0, xmmword [eax + esi + 0x10]
movups xmmword [ebp - 0x78], xmm0
jmp 0x1003eefd
mov eax, dword [ebp - 0xbc]
xor edi, edi
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xd0], edi
cmp dword [eax + 4], edi
jle 0x1003f21a
xor ecx, ecx
mov dword [ebp - 0xcc], ecx
mov esi, dword [eax]
add esi, ecx
mov dword [ebp - 0xe4], esi
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x1003f1b3
cmp dword [ecx + 4], 0
jle 0x1003f1b3
push 0
mov edx, 0x84cdad2
call fcn.10138e60
add esp, 4
test eax, eax
je 0x1003f1ad
mov ecx, dword [esi + 0x2c]
add ecx, eax
add edi, ecx
mov dword [ebp - 0xc8], edi
mov eax, dword [ebp - 0xbc]
mov edi, dword [esi]
xor ecx, ecx
mov esi, 0x811c9dc5
nop dword [eax]
inc ecx
cmp byte [ecx + edi], 0
jne 0x1003f1c0
xor edx, edx
test ecx, ecx
je 0x1003f1ef
nop dword [eax]
movsx eax, byte [edx + edi]
inc edx
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jb 0x1003f1d0
cmp esi, 0x84cdad2
je 0x1003f229
mov eax, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xcc]
inc edx
mov edi, dword [ebp - 0xc8]
add ecx, 0x3c
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0xcc], ecx
cmp edx, dword [eax + 4]
jl 0x1003f176
mov eax, edi
mov edi, dword [ebp - 0xd8]
mov dword [0x10370f6c], eax
jmp 0x1003f24a
mov eax, dword [ebp - 0xe4]
mov edi, dword [ebp - 0xd8]
mov eax, dword [eax + 0x2c]
add eax, dword [ebp - 0xc8]
mov dword [0x10370f6c], eax
jmp 0x1003f24a
mov eax, dword [0x10370f6c]
mov esi, dword [ebp - 0xf0]
mov eax, dword [eax + esi]
mov dword [edi + 4], eax
lea ecx, [ebp - 0x44]
call fcn.1002b860
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101f065f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.1000dd40
int3