Function at 0x408290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x114
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
mov esi, dword [esp + 0x128]
push edi
mov edi, edx
mov edx, ecx
add ebx, edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x5c], edx
mov ebp, edi
mov dword [esp + 0x4c], edi
mov eax, dword [edx + 0x7368]
mov edi, dword [edx + 0x7378]
mov ecx, dword [edx + 0x72b0]
add edi, eax
cmp dword [esp + 0x134], 0
mov edx, dword [edx + 0x72b4]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], edi
mov edx, dword [edx + 0x72b8]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x54], edx
je 0x40916c
mov ebx, dword [esp + 0x5c]
mov edi, 4
cmp dword [esp + 0x134], edi
push dword [esp + 0x130]
cmovl edi, dword [esp + 0x138]
mov dword [ebx + 0x72fc], 1
mov eax, dword [ebx + 0x682c]
mov dword [esp + 0xc0], eax
mov eax, dword [ebx + 0x6830]
mov dword [esp + 0xc4], eax
mov eax, dword [ebx + 0x6834]
mov dword [esp + 0xc8], eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
lea ecx, [esp + 0x94]
mov edx, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0xd4], eax
call fcn.00401090
add esp, 4
cmp eax, 0xffffff88
ja 0x408e86
push dword [ebx]
lea edx, [esp + 0x94]
lea ecx, [esp + 0xa8]
call fcn.00407a80
add esp, 4
lea edx, [esp + 0x90]
lea ecx, [esp + 0xac]
push dword [ebx + 8]
call fcn.00407a80
add esp, 4
lea edx, [esp + 0x90]
lea ecx, [esp + 0xb4]
push dword [ebx + 4]
call fcn.00407a80
add esp, 4
lea ecx, [esp + 0x90]
xor ebx, ebx
mov dword [esp + 0x30], ebx
call fcn.00401200
cmp eax, 2
jg 0x40880c
lea eax, [esp + 0xd8]
mov dword [esp + 0x18], eax
nop dword [eax + eax]
cmp ebx, edi
jge 0x408814
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
mov ebx, dword [ecx + eax*8]
mov edx, dword [ecx + eax*8 + 4]
mov ecx, ebx
mov eax, edx
mov dword [esp + 0x50], ebx
shrd ecx, eax, 0x10
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x1c], edx
mov ebx, dword [ecx + eax*8]
mov edi, dword [ecx + eax*8 + 4]
mov ecx, ebx
mov eax, edi
mov dword [esp + 0x40], ebx
shrd ecx, eax, 0x10
mov eax, dword [esp + 0xac]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x24], edi
mov esi, dword [ecx + eax*8]
mov ebx, dword [ecx + eax*8 + 4]
mov ecx, esi
mov eax, ebx
mov dword [esp + 0x14], esi
shrd ecx, eax, 0x10
mov dword [esp + 0x28], ebx
mov dword [esp + 0x88], esi
cmp cl, 1
jbe 0x4085a2
cmp dword [esp + 0x138], 0
je 0x408542
cmp cl, 0x19
jb 0x408542
mov esi, dword [esp + 0x94]
mov eax, 0x20
mov ebx, dword [esp + 0x90]
sub eax, esi
movzx edi, cl
mov ecx, esi
cmp edi, eax
mov edx, edi
cmovae edx, eax
and ecx, 0x1f
shl ebx, cl
sub edi, edx
mov ecx, edx
add esi, edx
neg ecx
mov dword [esp + 0x94], esi
and ecx, 0x1f
shr ebx, cl
mov ecx, edi
shl ebx, cl
lea ecx, [esp + 0x90]
add ebx, dword [esp + 0x28]
call fcn.00401200
mov esi, dword [esp + 0x94]
test edi, edi
je 0x40853c
mov eax, dword [esp + 0x90]
mov ecx, esi
and ecx, 0x1f
add esi, edi
shl eax, cl
mov ecx, edi
neg ecx
mov dword [esp + 0x94], esi
and ecx, 0x1f
shr eax, cl
add ebx, eax
mov edi, dword [esp + 0x24]
jmp 0x408581
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
movzx esi, cl
mov ecx, edx
and ecx, 0x1f
add edx, esi
shl eax, cl
mov ecx, esi
neg ecx
mov dword [esp + 0x94], edx
and ecx, 0x1f
shr eax, cl
lea ecx, [esp + 0x90]
add ebx, eax
call fcn.00401200
mov esi, dword [esp + 0x94]
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc0], eax
jmp 0x40863f
mov esi, dword [esp + 0x94]
xor ebx, ebx
test edx, edx
sete bl
test cl, cl
jne 0x4085db
test edx, edx
je 0x4085c4
mov ebx, dword [esp + 0xbc]
jmp 0x408646
mov ebx, dword [esp + 0xc0]
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc0], eax
jmp 0x40863f
mov eax, dword [esp + 0x90]
mov ecx, esi
mov edx, dword [esp + 0xbc]
and ecx, 0x1f
shl eax, cl
inc esi
shr eax, 0x1f
mov dword [esp + 0x94], esi
lea ecx, [eax + ebx]
add ecx, dword [esp + 0x28]
cmp ecx, 3
jne 0x408615
lea eax, [edx - 1]
xor ebx, ebx
test eax, eax
sete bl
add ebx, eax
jmp 0x40862a
mov eax, dword [esp + ecx*4 + 0xbc]
xor ebx, ebx
test eax, eax
sete bl
add ebx, eax
cmp ecx, 1
je 0x408638
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], edx
mov dword [esp + 0xbc], ebx
mov ecx, dword [esp + 0x3c]
movzx eax, cl
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x3c], eax
test cl, cl
je 0x40868d
mov edx, eax
mov ecx, esi
add esi, eax
and ecx, 0x1f
mov eax, dword [esp + 0x90]
neg edx
shl eax, cl
and edx, 0x1f
mov ecx, edx
mov dword [esp + 0x94], esi
shr eax, cl
add edi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x64], edi
mov ecx, dword [esp + 0x48]
movzx edi, cl
add eax, edi
cmp eax, 0x14
jb 0x4086ae
lea ecx, [esp + 0x90]
call fcn.00401200
mov esi, dword [esp + 0x94]
cmp byte [esp + 0x48], 0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x60], edx
jbe 0x4086e7
mov eax, dword [esp + 0x90]
mov ecx, esi
add esi, edi
and ecx, 0x1f
neg edi
shl eax, cl
and edi, 0x1f
mov dword [esp + 0x94], esi
mov ecx, edi
shr eax, cl
add edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x60], edx
lea ecx, [esp + 0x90]
call fcn.00401200
mov ecx, dword [esp + 0x1c]
add ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0xc8]
cmp ebx, ecx
mov edi, dword [esp + 0x94]
cmova eax, dword [esp + 0xcc]
movzx esi, byte [esp + 0x7b]
sub eax, ebx
mov ebx, dword [esp + 0x90]
add eax, ecx
mov dword [esp + 0x6c], eax
add edi, esi
mov eax, dword [esp + 0x24]
mov edx, ebx
add eax, ecx
mov ecx, edi
neg ecx
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x50]
and ecx, 0x1f
shr edx, cl
and edx, dword [esi*4 + 0x4248b0]
movzx eax, ax
add edx, eax
mov dword [esp + 0xa4], edx
movzx edx, byte [esp + 0x83]
lea ecx, [edx + edi]
neg ecx
lea eax, [edx + edi]
and ecx, 0x1f
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x40]
shr ebx, cl
lea ecx, [esp + 0x90]
and ebx, dword [edx*4 + 0x4248b0]
movzx eax, ax
add ebx, eax
mov dword [esp + 0xb4], ebx
call fcn.00401200
movzx eax, byte [esp + 0x8b]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
add ecx, eax
mov esi, dword [esp + 0x18]
movups xmm0, xmmword [esp + 0x60]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x94], ecx
inc ebx
neg ecx
mov dword [esp + 0x30], ebx
and ecx, 0x1f
shr edx, cl
lea ecx, [esp + 0x90]
and edx, dword [eax*4 + 0x4248b0]
mov eax, dword [esp + 0x14]
movzx eax, ax
movups xmmword [esi], xmm0
add edx, eax
add esi, 0x10
mov dword [esp + 0xac], edx
mov dword [esp + 0x18], esi
call fcn.00401200
mov edi, dword [esp + 0x38]
cmp eax, 2
jle 0x408410
cmp ebx, edi
jl 0x408e86
lea ecx, [esp + 0x90]
call fcn.00401200
cmp eax, 2
jg 0x408e7b
nop dword [eax]
mov eax, dword [esp + 0x134]
cmp ebx, eax
jge 0x408e9c
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
mov edx, dword [ecx + eax*8]
mov edi, dword [ecx + eax*8 + 4]
mov ecx, edx
mov eax, edi
mov dword [esp + 0x40], edx
shrd ecx, eax, 0x10
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x88], edx
mov dword [esp + 0x18], edi
mov edx, dword [ecx + eax*8]
mov esi, dword [ecx + eax*8 + 4]
mov ecx, edx
mov eax, esi
mov dword [esp + 0x50], edx
shrd ecx, eax, 0x10
mov eax, dword [esp + 0xac]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x80], edx
mov dword [esp + 0x1c], esi
mov edx, dword [ecx + eax*8]
mov ebx, dword [ecx + eax*8 + 4]
mov ecx, edx
mov eax, ebx
mov dword [esp + 0x3c], edx
shrd ecx, eax, 0x10
mov dword [esp + 0x48], ebx
mov dword [esp + 0x78], edx
cmp cl, 1
jbe 0x4089b5
cmp dword [esp + 0x138], 0
je 0x408970
cmp cl, 0x19
jb 0x408970
mov esi, dword [esp + 0x94]
mov eax, 0x20
mov ebx, dword [esp + 0x90]
sub eax, esi
movzx edi, cl
mov ecx, esi
cmp edi, eax
mov edx, edi
cmovae edx, eax
and ecx, 0x1f
shl ebx, cl
sub edi, edx
mov ecx, edx
add esi, edx
neg ecx
mov dword [esp + 0x94], esi
and ecx, 0x1f
shr ebx, cl
mov ecx, edi
shl ebx, cl
lea ecx, [esp + 0x90]
add ebx, dword [esp + 0x48]
call fcn.00401200
mov edx, dword [esp + 0x94]
test edi, edi
je 0x408963
mov eax, dword [esp + 0x90]
mov ecx, edx
and ecx, 0x1f
add edx, edi
shl eax, cl
mov ecx, edi
neg ecx
mov dword [esp + 0x94], edx
and ecx, 0x1f
shr eax, cl
add ebx, eax
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
jmp 0x408a29
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
movzx esi, cl
mov ecx, edx
and ecx, 0x1f
add edx, esi
shl eax, cl
mov ecx, esi
neg ecx
mov dword [esp + 0x94], edx
and ecx, 0x1f
shr eax, cl
lea ecx, [esp + 0x90]
add ebx, eax
call fcn.00401200
mov edx, dword [esp + 0x94]
mov esi, dword [esp + 0x1c]
jmp 0x408a29
mov edx, dword [esp + 0x94]
xor ebx, ebx
test edi, edi
sete bl
test cl, cl
jne 0x4089dd
test edi, edi
je 0x4089d4
mov ebx, dword [esp + 0xbc]
jmp 0x408a4c
mov ebx, dword [esp + 0xc0]
jmp 0x408a37
mov eax, dword [esp + 0x90]
mov ecx, edx
and ecx, 0x1f
inc edx
shl eax, cl
mov ecx, dword [esp + 0x48]
shr eax, 0x1f
add ecx, eax
mov dword [esp + 0x94], edx
add ecx, ebx
xor ebx, ebx
cmp ecx, 3
jne 0x408a16
mov eax, dword [esp + 0xbc]
add eax, 0xffffffff
sete bl
add ebx, eax
jmp 0x408a29
mov eax, dword [esp + ecx*4 + 0xbc]
test eax, eax
sete bl
add ebx, eax
cmp ecx, 1
je 0x408a37
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xbc], ebx
mov ecx, dword [esp + 0x14]
movzx eax, cl
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x18], eax
test cl, cl
je 0x408a93
mov ecx, edx
add edx, eax
mov eax, dword [esp + 0x90]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x18]
neg ecx
mov dword [esp + 0x94], edx
and ecx, 0x1f
shr eax, cl
add esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x64], esi
mov ecx, dword [esp + 0x28]
movzx esi, cl
add eax, esi
cmp eax, 0x14
jb 0x408ab4
lea ecx, [esp + 0x90]
call fcn.00401200
mov edx, dword [esp + 0x94]
cmp byte [esp + 0x28], 0
mov dword [esp + 0x60], edi
jbe 0x408ae5
mov eax, dword [esp + 0x90]
mov ecx, edx
add edx, esi
and ecx, 0x1f
neg esi
shl eax, cl
and esi, 0x1f
mov dword [esp + 0x94], edx
mov ecx, esi
shr eax, cl
add edi, eax
mov dword [esp + 0x60], edi
lea ecx, [esp + 0x90]
call fcn.00401200
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0xc8]
add ecx, edi
mov edi, dword [esp + 0x94]
cmp ebx, ecx
movzx esi, byte [esp + 0x8b]
cmova eax, dword [esp + 0xcc]
add edi, esi
sub eax, ebx
mov ebx, dword [esp + 0x90]
add eax, ecx
mov edx, ebx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x1c]
add eax, ecx
mov ecx, edi
neg ecx
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x40]
and ecx, 0x1f
shr edx, cl
and edx, dword [esi*4 + 0x4248b0]
movzx eax, ax
add edx, eax
mov dword [esp + 0xa4], edx
movzx edx, byte [esp + 0x83]
lea ecx, [edi + edx]
neg ecx
lea eax, [edi + edx]
and ecx, 0x1f
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x50]
shr ebx, cl
lea ecx, [esp + 0x90]
and ebx, dword [edx*4 + 0x4248b0]
movzx eax, ax
add ebx, eax
mov dword [esp + 0xb4], ebx
call fcn.00401200
movzx eax, byte [esp + 0x7b]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
add ecx, eax
mov dword [esp + 0x94], ecx
neg ecx
and ecx, 0x1f
shr edx, cl
lea ecx, [esp + 0xd8]
and edx, dword [eax*4 + 0x4248b0]
mov eax, dword [esp + 0x3c]
movzx eax, ax
add edx, eax
mov eax, dword [esp + 0x30]
and eax, 3
mov dword [esp + 0xac], edx
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
movups xmm1, xmmword [eax]
movd eax, xmm1
movaps xmm0, xmm1
psrldq xmm0, 4
movd edx, xmm0
add ecx, eax
psrldq xmm1, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], edx
lea ebx, [eax + ebp]
mov dword [esp + 0x40], ecx
mov edi, ebx
lea esi, [edx + eax]
movd eax, xmm1
mov dword [esp + 0x24], esi
sub edi, eax
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0x44]
ja 0x408e12
mov eax, dword [esp + 0x34]
lea ecx, [esi + ebp]
add eax, 0xffffffe0
cmp ecx, eax
ja 0x408e12
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x20]
sub ecx, ebp
cmp ecx, eax
jb 0x408e12
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
movups xmm0, xmmword [eax]
movups xmmword [ebp], xmm0
cmp ecx, 0x10
jbe 0x408cb2
mov edx, dword [esp + 0x20]
lea eax, [ebp + 0x10]
add ecx, 0xfffffff0
movups xmm0, xmmword [edx + 0x10]
lea ebp, [eax + ecx]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x4c]
movups xmmword [eax], xmm0
cmp ecx, 0x10
jle 0x408cae
mov ecx, dword [esp + 0x14]
add eax, 0x10
add edx, 0x20
movups xmm0, xmmword [edx]
lea edx, [edx + 0x20]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edx - 0x10]
movups xmmword [eax + 0x10], xmm0
add eax, 0x20
cmp eax, ecx
jb 0x408c96
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, ebx
sub eax, dword [esp + 0x2c]
cmp ecx, eax
jbe 0x408d20
mov eax, ebx
sub eax, dword [esp + 0x58]
cmp ecx, eax
ja 0x408e90
mov ecx, dword [esp + 0x54]
mov eax, ecx
sub eax, dword [esp + 0x2c]
add edi, eax
lea eax, [edi + edx]
cmp eax, ecx
ja 0x408cfd
push edx
push edi
push ebx
call fcn.0040c2c0
mov edi, dword [esp + 0x28]
add esp, 0xc
jmp 0x408e46
mov esi, ecx
sub esi, edi
push esi
push edi
push ebx
call fcn.0040c2c0
mov edx, dword [esp + 0x34]
add ebx, esi
mov edi, dword [esp + 0x38]
add esp, 0xc
mov ecx, dword [esp + 0x18]
sub edx, esi
mov esi, dword [esp + 0x24]
cmp ecx, 0x10
jb 0x408d62
lea eax, [edx + ebx]
mov dword [esp + 0x14], eax
movups xmm0, xmmword [edi]
movups xmmword [ebx], xmm0
cmp edx, 0x10
jle 0x408d59
mov edx, dword [esp + 0x14]
lea eax, [ebx + 0x10]
lea ecx, [edi + 0x10]
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x20]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ecx - 0x10]
movups xmmword [eax + 0x10], xmm0
add eax, 0x20
cmp eax, edx
jb 0x408d41
mov edi, dword [esp + 0x1c]
jmp 0x408e46
cmp ecx, 8
jae 0x408d96
movzx eax, byte [edi]
mov byte [ebx], al
movzx eax, byte [edi + 1]
mov byte [ebx + 1], al
movzx eax, byte [edi + 2]
mov byte [ebx + 2], al
movzx eax, byte [edi + 3]
add edi, dword [ecx*4 + 0x425180]
mov byte [ebx + 3], al
mov eax, dword [edi]
sub edi, dword [ecx*4 + str._b_b_b_a_b_t_n_v]
mov dword [ebx + 4], eax
jmp 0x408da0
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
cmp edx, 8
jbe 0x408e0c
lea ecx, [edx - 8]
add edi, 8
lea edx, [ebx + 8]
mov eax, edx
lea esi, [edx + ecx]
sub eax, edi
cmp eax, 0x10
jge 0x408ddd
sub edi, edx
nop dword [eax]
mov eax, dword [edi + edx]
mov ecx, dword [edi + edx + 4]
mov dword [edx], eax
mov dword [edx + 4], ecx
add edx, 8
cmp edx, esi
jb 0x408dc0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
jmp 0x408e46
movups xmm0, xmmword [edi]
movups xmmword [edx], xmm0
cmp ecx, 0x10
jle 0x408e08
add edx, 0x10
lea eax, [edi + 0x10]
nop
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmmword [edx], xmm0
movups xmm0, xmmword [eax - 0x10]
movups xmmword [edx + 0x10], xmm0
add edx, 0x20
cmp edx, esi
jb 0x408df0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
jmp 0x408e46
push dword [esp + 0x54]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x24]
push dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
mov ecx, ebp
push dword [esp + 0x34]
movups xmm0, xmmword [edi]
push dword [esp + 0x50]
push eax
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.00407980
add esp, 0x24
mov esi, eax
cmp esi, 0xffffff88
ja 0x408e95
movups xmm0, xmmword [esp + 0x60]
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x90]
add ebp, esi
inc ebx
movups xmmword [edi], xmm0
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x30], ebx
call fcn.00401200
cmp eax, 2
jle 0x408830
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x134]
cmp ebx, eax
jge 0x408ea0
mov eax, 0xffffffec
jmp 0x409192
mov esi, 0xffffffec
mov eax, esi
jmp 0x409192
mov edi, dword [esp + 0x38]
sub ebx, edi
mov dword [esp + 0x30], ebx
cmp ebx, eax
jge 0x409135
nop
mov eax, ebx
lea ecx, [esp + 0xd8]
and eax, 3
shl eax, 4
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
movups xmm1, xmmword [eax]
movd eax, xmm1
movaps xmm0, xmm1
psrldq xmm0, 4
movd edx, xmm0
add ecx, eax
psrldq xmm1, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], edx
lea ebx, [eax + ebp]
mov dword [esp + 0x50], ecx
mov edi, ebx
mov dword [esp + 0x40], ebx
lea esi, [edx + eax]
movd eax, xmm1
mov dword [esp + 0x3c], esi
sub edi, eax
mov dword [esp + 0x4c], eax
cmp ecx, dword [esp + 0x44]
ja 0x4090e0
mov eax, dword [esp + 0x34]
lea ecx, [esi + ebp]
add eax, 0xffffffe0
cmp ecx, eax
ja 0x4090e0
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x20]
sub ecx, ebp
cmp ecx, eax
jb 0x4090e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
movups xmm0, xmmword [eax]
movups xmmword [ebp], xmm0
cmp ecx, 0x10
jbe 0x408f91
mov edx, dword [esp + 0x20]
lea eax, [ebp + 0x10]
add ecx, 0xfffffff0
movups xmm0, xmmword [edx + 0x10]
lea ebx, [eax + ecx]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x40]
movups xmmword [eax], xmm0
cmp ecx, 0x10
jle 0x408f8d
mov ecx, dword [esp + 0x14]
add eax, 0x10
add edx, 0x20
movups xmm0, xmmword [edx]
lea edx, [edx + 0x20]
movups xmmword [eax], xmm0
movups xmm0, xmmword [edx - 0x10]
movups xmmword [eax + 0x10], xmm0
add eax, 0x20
cmp eax, ecx
jb 0x408f75
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov eax, ebx
sub eax, dword [esp + 0x2c]
cmp ecx, eax
jbe 0x408ffb
mov eax, ebx
sub eax, dword [esp + 0x58]
cmp ecx, eax
ja 0x408e90
mov ecx, dword [esp + 0x54]
mov eax, ecx
sub eax, dword [esp + 0x2c]
add edi, eax
lea eax, [edi + edx]
cmp eax, ecx
ja 0x408fd8
push edx
push edi
push ebx
call fcn.0040c2c0
add esp, 0xc
jmp 0x409114
mov esi, ecx
sub esi, edi
push esi
push edi
push ebx
call fcn.0040c2c0
mov edx, dword [esp + 0x44]
add ebx, esi
mov edi, dword [esp + 0x38]
add esp, 0xc
mov ecx, dword [esp + 0x4c]
sub edx, esi
mov esi, dword [esp + 0x3c]
cmp ecx, 0x10
jb 0x40903d
lea eax, [edx + ebx]
mov dword [esp + 0x14], eax
movups xmm0, xmmword [edi]
movups xmmword [ebx], xmm0
cmp edx, 0x10
jle 0x409114
mov edx, dword [esp + 0x14]
lea eax, [ebx + 0x10]
lea ecx, [edi + 0x10]
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x20]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ecx - 0x10]
movups xmmword [eax + 0x10], xmm0
add eax, 0x20
cmp eax, edx
jb 0x409020
jmp 0x409114
cmp ecx, 8
jae 0x409071
movzx eax, byte [edi]
mov byte [ebx], al
movzx eax, byte [edi + 1]
mov byte [ebx + 1], al
movzx eax, byte [edi + 2]
mov byte [ebx + 2], al
movzx eax, byte [edi + 3]
add edi, dword [ecx*4 + 0x425180]
mov byte [ebx + 3], al
mov eax, dword [edi]
sub edi, dword [ecx*4 + str._b_b_b_a_b_t_n_v]
mov dword [ebx + 4], eax
jmp 0x40907b
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
cmp edx, 8
jbe 0x409114
lea eax, [ebx + 8]
add edx, 0xfffffff8
add edi, 8
mov ecx, eax
sub ecx, edi
lea ebx, [eax + edx]
cmp ecx, 0x10
jge 0x4090b5
sub edi, eax
nop dword [eax + eax]
mov ecx, dword [edi + eax]
mov edx, dword [edi + eax + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add eax, 8
cmp eax, ebx
jb 0x4090a0
jmp 0x409114
movups xmm0, xmmword [edi]
movups xmmword [eax], xmm0
cmp edx, 0x10
jle 0x409114
add eax, 0x10
lea ecx, [edi + 0x10]
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x20]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ecx - 0x10]
movups xmmword [eax + 0x10], xmm0
add eax, 0x20
cmp eax, ebx
jb 0x4090c6
jmp 0x409114
push dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
push dword [esp + 0x34]
movups xmm0, xmmword [ecx]
mov ecx, ebp
push dword [esp + 0x50]
push eax
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.00407980
add esp, 0x24
mov esi, eax
cmp esi, 0xffffff88
ja 0x408e95
mov ebx, dword [esp + 0x30]
add ebp, esi
inc ebx
mov dword [esp + 0x30], ebx
cmp ebx, dword [esp + 0x134]
jl 0x408eb0
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0xbc]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x44]
mov dword [edx + 0x682c], eax
mov eax, dword [esp + 0xc0]
mov dword [edx + 0x6830], eax
mov eax, dword [esp + 0xc4]
mov dword [edx + 0x6834], eax
mov eax, dword [esp + 0x20]
sub edi, eax
sub ebx, ebp
cmp edi, ebx
jbe 0x40917b
mov eax, 0xffffffba
jmp 0x409192
test ebp, ebp
je 0x40918c
push edi
push eax
push ebp
call fcn.0040c2c0
add esp, 0xc
add ebp, edi
sub ebp, dword [esp + 0x74]
mov eax, ebp
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a859
add esp, 0x114
ret